How To Install nodejs-packaging on Fedora 36

In this tutorial we learn how to install nodejs-packaging in Fedora 36. nodejs-packaging is RPM Macros and Utilities for Node.js Packaging

Introduction

In this tutorial we learn how to install nodejs-packaging on Fedora 36.

What is nodejs-packaging

This package contains RPM macros and other utilities useful for packaging Node.js modules and applications in RPM-based distributions.

We can use yum or dnf to install nodejs-packaging on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-packaging.

Install nodejs-packaging on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install nodejs-packaging using dnf by running the following command:

sudo dnf -y install nodejs-packaging

Install nodejs-packaging on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install nodejs-packaging using yum by running the following command:

sudo yum -y install nodejs-packaging

How To Uninstall nodejs-packaging on Fedora 36

To uninstall only the nodejs-packaging package we can use the following command:

sudo dnf remove nodejs-packaging

nodejs-packaging Package Contents on Fedora 36

/usr/lib/rpm/fileattrs/nodejs.attr
/usr/lib/rpm/macros.d/macros.nodejs
/usr/lib/rpm/nodejs-fixdep
/usr/lib/rpm/nodejs-setversion
/usr/lib/rpm/nodejs-symlink-deps
/usr/lib/rpm/nodejs.prov
/usr/lib/rpm/nodejs.req
/usr/share/licenses/nodejs-packaging
/usr/share/licenses/nodejs-packaging/LICENSE
/usr/share/node/multiver_modules

References

Summary

In this tutorial we learn how to install nodejs-packaging on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).