On CentOS, Fedora and RHEL, you can install Yarn via our RPM package repository.
```sh
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_12.x | sudo bash -
Then you can simply:
sudo yum install yarn
## OR ##
sudo dnf install yarn
Currently, there are no RPM packages available for RC or nightly builds of Yarn. Please use the tarball:
{% include_relative _installations/tarball.md %}
Path Setup
{% include_relative _installations/unix_path_setup.md %}