在RHEL 8上安装Node.js 14(从AppStream获取)
首先
使用 Application Stream (AppStream) 在 RHEL 8 上安装 Node.js 14。
参考: RHEL 8 的软件包结构 – BaseOS 和 Application Stream – Red Hat 工程师博客,第 4 章 新功能 Red Hat Enterprise Linux 8 | Red Hat 客户门户
支持
根据Red Hat Enterprise Linux 8 Application Streams Life Cycle与Red Hat客户门户网站上的信息推测,据信2022-11至2023-04为本方法的生命周期结束(EOL)时间。此后可能不会对报道的漏洞或问题进行修复。
日志
安装
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
# yum module install nodejs:14
... 略
确认的不同方式
# which node
/usr/bin/node
# node -v
v14.11.0
# yum module info nodejs:14
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Last metadata expiration check: 0:03:05 ago on Fri Nov 6 14:13:15 2020.
Name : nodejs
Stream : 14 [e]
Version : 8030020200921141129
Context : 30b713e6
Architecture : x86_64
Profiles : common [d] [i], development, minimal, s2i
Default profiles : common
Repo : ubi-8-appstream
Summary : Javascript runtime
Description : Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Requires : platform:[el8]
Artifacts : nodejs-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.src
: nodejs-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-debuginfo-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-debugsource-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-devel-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-docs-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.noarch
: nodejs-full-i18n-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-nodemon-0:2.0.3-1.module+el8.3.0+6519+9f98ed83.noarch
: nodejs-nodemon-0:2.0.3-1.module+el8.3.0+6519+9f98ed83.src
: nodejs-packaging-0:23-3.module+el8.3.0+6519+9f98ed83.noarch
: nodejs-packaging-0:23-3.module+el8.3.0+6519+9f98ed83.src
: npm-1:6.14.8-1.14.11.0.1.module+el8.3.0+8180+4125ea5c.x86_64
Name : nodejs
Stream : 14 [e] [a]
Version : 8030020200921141129
Context : 30b713e6
Architecture : x86_64
Profiles : common [d] [i], development, minimal, s2i
Default profiles : common
Repo : rhel-8-for-x86_64-appstream-rpms
Summary : Javascript runtime
Description : Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Requires : platform:[el8]
Artifacts : nodejs-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.src
: nodejs-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-debuginfo-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-debugsource-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-devel-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-docs-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.noarch
: nodejs-full-i18n-1:14.11.0-1.module+el8.3.0+8180+4125ea5c.x86_64
: nodejs-nodemon-0:2.0.3-1.module+el8.3.0+6519+9f98ed83.noarch
: nodejs-nodemon-0:2.0.3-1.module+el8.3.0+6519+9f98ed83.src
: nodejs-packaging-0:23-3.module+el8.3.0+6519+9f98ed83.noarch
: nodejs-packaging-0:23-3.module+el8.3.0+6519+9f98ed83.src
: npm-1:6.14.8-1.14.11.0.1.module+el8.3.0+8180+4125ea5c.x86_64
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive