在AlmaLinux OS 8上安装Node.js 18(使用AppStream)
首先
利用 Application Stream (AppStream) 在 AlmaLinux OS 8 上安装 Node.js 18。
支持
如果使用这种方法引入的话,根据Red Hat Enterprise Linux Application Streams Life Cycle – Red Hat Customer Portal,2025年4月可能会到达终止支持(EOL)。
之后可能不会实施对报告的漏洞和问题的修复。
记录
安装
# cat /etc/redhat-release
AlmaLinux release 8.7 (Stone Smilodon)
# yum module install -y nodejs:18
... 略
各种确认 – Gè
# which node
/usr/bin/node
# node -v
v18.9.1
# yum info nodejs
Last metadata expiration check: 0:03:56 ago on Fri Nov 18 06:23:25 2022.
Installed Packages
Name : nodejs
Epoch : 1
Version : 18.9.1
Release : 1.module_el8.7.0+3343+ea2b7901
Architecture : x86_64
Size : 47 M
Source : nodejs-18.9.1-1.module_el8.7.0+3343+ea2b7901.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.