Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit bee51b2

Browse files
richardlaunschonni
authored andcommitted
docs: Add package manager steps for CentOS/Fedora/RHEL
Add steps to install Node.js from the package manager on CentOS, Fedora and Red Hat Enterprise Linux. Refs: nodejs/nodejs.org#3512
1 parent 8c15365 commit bee51b2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/pages/docs.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,28 @@ function renderDefaultArticle(
187187
pacman -S nodejs 
188188
<span className="function">npm</span>
189189
</ShellBox>
190+
<h3>CentOS, Fedora and Red Hat Enterprise Linux</h3>
191+
<p className="t-body1">
192+
Node.js is available as a module called <code>nodejs</code> in
193+
CentOS/RHEL 8 and Fedora.
194+
<ShellBox textToCopy="dnf module install nodejs:">
195+
dnf module install nodejs:&lt;stream&gt;
196+
</ShellBox>
197+
where <code>&lt;stream&gt;</code> corresponds to the major version of
198+
Node.js. To see a list of available streams:
199+
<ShellBox textToCopy="dnf module list nodejs">
200+
dnf module list nodejs
201+
</ShellBox>
202+
For example, to install Node.js 12:
203+
<ShellBox textToCopy="dnf module install nodejs:12">
204+
dnf module install nodejs:12
205+
</ShellBox>
206+
For CentOS/RHEL 7 Node.js is available via&nbsp;
207+
<a href="https://www.softwarecollections.org/en/scls/?search=NodeJS">
208+
Software Collections
209+
</a>
210+
.
211+
</p>
190212
<h3>
191213
Debian and Ubuntu based Linux distributions, Enterprise Linux/Fedora and
192214
Snap packages

0 commit comments

Comments
 (0)