On CentOS, Fedora and RHEL, you can install Yarn via our RPM package repository. curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo If you do not already have Node.js installed, you should also configure the NodeSource repository: curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - Then you can simply: sudo yum install yarn ( or sudo dnf install yarn )

