Skip to content

Red Hat Enterprise Linux

https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux

Commercial Linux distribution by Red Hat

Terminal window
# Create a directory for global packages
mkdir ~/.npm-global
# Configure npm to use it
npm config set prefix '~/.npm-global'
# Add to your PATH (add this line to ~/.bashrc or ~/.zshrc)
export PATH=~/.npm-global/bin:$PATH
# Reload your shell configuration
source ~/.bashrc # or source ~/.zshrc
Terminal window
sudo dnf module enable nodejs:22
sudo dnf install npm
# Confirm with `y` to update
Terminal window
rpm -qa
Terminal window
yum list all
  • Fedora - the upstream, community distro
  • CentOS Stream

    CentOS Stream provides a mid-point in the RHEL development cycle. Advancements in the Linux kernel and supporting components make their way to the Fedora Project, which packages and delivers the leading-edge Fedora Linux operating system every six months. Those innovations periodically make their way downstream - not straight into RHEL, but into CentOS Stream, and then into RHEL.