在RockyLinux OS 8上安装Nodejs 20(AppStream)
首先
使用Application Stream (AppStream)在Rocky Linux OS 8上安装Nodejs 20。
支持
假如使用这种方法引入,根据红帽企业级Linux应用程序流的生命周期—红帽客户门户网站,2026年4月可能会到达终止支持(EOL)。
之后可能不会对报告的漏洞和问题进行修复。
日志
安装
# cat /etc/redhat-release
Rocky Linux release 8.9 (Green Obsidian)
# yum module list nodejs
Last metadata expiration check: 0:00:37 ago on Thu Nov 23 05:19:30 2023.
Rocky Linux 8 - AppStream
Name Stream Profiles Summary
nodejs 10 [d] common [d], development, minimal, s2i Javascript runtime
nodejs 12 common [d], development, minimal, s2i Javascript runtime
nodejs 14 common [d], development, minimal, s2i Javascript runtime
nodejs 16 common [d], development, minimal, s2i Javascript runtime
nodejs 18 common [d], development, minimal, s2i Javascript runtime
nodejs 20 common [d], development, minimal, s2i Javascript runtime
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
# yum module install -y nodejs:20
... 略
确认的各种方式
# which node
/usr/bin/node
# /usr/bin/node -v
v20.9.0
# yum info nodejs
Last metadata expiration check: 0:01:12 ago on Thu Nov 23 05:19:30 2023.
Installed Packages
Name : nodejs
Epoch : 1
Version : 20.9.0
Release : 1.module+el8.9.0+1584+0f2e6a8b
Architecture : x86_64
Size : 51 M
Source : nodejs-20.9.0-1.module+el8.9.0+1584+0f2e6a8b.src.rpm
Repository : @System
From repo : appstream
Summary : JavaScript runtime
URL : http://nodejs.org/
License : MIT and ASL 2.0 and ISC and BSD
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.