From 5e2820e2e6aa17beda33269c6949e160474a8621 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 11 Nov 2020 12:03:33 +0000 Subject: [PATCH] Add package manager steps for CentOS/Fedora/RHEL --- locale/en/download/package-manager.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/locale/en/download/package-manager.md b/locale/en/download/package-manager.md index ae55bc6cb0ece..8083ef9e2e4ec 100644 --- a/locale/en/download/package-manager.md +++ b/locale/en/download/package-manager.md @@ -11,6 +11,7 @@ title: Installing Node.js via package manager * [Android](#android) * [Arch Linux](#arch-linux) +* [CentOS, Fedora and Red Hat Enterprise Linux](#centos-fedora-and-red-hat-enterprise-linux) * [Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and Snap packages](#debian-and-ubuntu-based-linux-distributions-enterprise-linux-fedora-and-snap-packages) * [FreeBSD](#freebsd) * [Gentoo](#gentoo) @@ -48,6 +49,29 @@ Node.js and npm packages are available in the Community Repository. pacman -S nodejs npm ``` +## CentOS, Fedora and Red Hat Enterprise Linux + +Node.js is available as a module called `nodejs` in CentOS/RHEL 8 and Fedora. + +```bash +dnf module install nodejs: +``` + +where `` corresponds to the major version of Node.js. +To see a list of available streams: + +```bash +dnf module list nodejs +``` + +For example, to install Node.js 12: + +```bash +dnf module install nodejs:12 +``` + +For CentOS/RHEL 7 Node.js is available via [Software Collections](https://www.softwarecollections.org/en/scls/?search=NodeJS). + ## Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and Snap packages [Node.js binary distributions](https://github.com/nodesource/distributions/blob/master/README.md) are available from NodeSource.