在RHEL 8上安装Node.js 10(通过AppStream)

首先

注:这是一个通用的翻译,用于表示文章或谈话的开头。如果上下文需要,可能会有不同的翻译选项。

使用应用程序流 (AppStream) 在 RHEL8 上安装 Node.js 10。
参考:RHEL8 的软件包架构 – BaseOS 和 Application Stream – 红帽工程师博客

支持

如果使用本方法进行引入,根据Red Hat Enterprise Linux 8 Application Streams的生命周期 – Red Hat客户门户,2021年04月可能会终止服务。
在此之后,可能不会对报告的漏洞和问题进行修复。

日志

安装

# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)

# yum install -y @nodejs:10
... 略

各种确认 – Gè .

# which node
/usr/bin/node

# node -v
v10.16.3

# yum module info nodejs:10
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Last metadata expiration check: 0:15:03 ago on Sun Nov 10 09:16:37 2019.
Name             : nodejs
Stream           : 10 [d][e]
Version          : 8000020190911085529
Context          : f8e95b4e
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.
Artifacts        : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.src
                 : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debugsource-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-docs-1:10.16.3-2.module+el8.0.0+4214+49953fda.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.src
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.noarch
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.src
                 : npm-1:6.9.0-1.10.16.3.2.module+el8.0.0+4214+49953fda.x86_64

Name             : nodejs
Stream           : 10 [d][e][a]
Version          : 8000020190911085529
Context          : f8e95b4e
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.
Artifacts        : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.src
                 : nodejs-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-debugsource-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-devel-debuginfo-1:10.16.3-2.module+el8.0.0+4214+49953fda.x86_64
                 : nodejs-docs-1:10.16.3-2.module+el8.0.0+4214+49953fda.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.src
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.noarch
                 : nodejs-packaging-0:17-3.module+el8+2873+aa7dfd9a.src
                 : npm-1:6.9.0-1.10.16.3.2.module+el8.0.0+4214+49953fda.x86_64

Name             : nodejs
Stream           : 10 [d][e][a]
Version          : 820190108092226
Context          : 9edba152
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.
Artifacts        : nodejs-1:10.14.1-1.module+el8+2632+6c5111ed.x86_64
                 : nodejs-devel-1:10.14.1-1.module+el8+2632+6c5111ed.x86_64
                 : nodejs-docs-1:10.14.1-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-nodemon-0:1.18.3-1.module+el8+2632+6c5111ed.noarch
                 : nodejs-packaging-0:17-2.module+el8+2632+6c5111ed.noarch
                 : npm-1:6.4.1-1.10.14.1.1.module+el8+2632+6c5111ed.x86_64

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled, [a]ctive
广告
将在 10 秒后关闭
bannerAds