How To Install nodejs-devel on Rocky Linux 8

In this tutorial we learn how to install nodejs-devel on Rocky Linux 8. nodejs-devel is JavaScript runtime - development headers

Introduction

In this tutorial we learn how to install nodejs-devel on Rocky Linux 8.

What is nodejs-devel

Development headers for the Node.js JavaScript runtime.

We can use yum or dnf to install nodejs-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-devel.

Install nodejs-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install nodejs-devel

Install nodejs-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install nodejs-devel

How To Uninstall nodejs-devel on Rocky Linux 8

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

sudo dnf remove nodejs-devel

nodejs-devel Package Contents on Rocky Linux 8

/usr/include/node
/usr/include/node/common.gypi
/usr/include/node/config.gypi
/usr/include/node/libplatform
/usr/include/node/libplatform/libplatform-export.h
/usr/include/node/libplatform/libplatform.h
/usr/include/node/libplatform/v8-tracing.h
/usr/include/node/node.h
/usr/include/node/node_api.h
/usr/include/node/node_api_types.h
/usr/include/node/node_buffer.h
/usr/include/node/node_object_wrap.h
/usr/include/node/node_version.h
/usr/include/node/uv
/usr/include/node/uv.h
/usr/include/node/uv/aix.h
/usr/include/node/uv/android-ifaddrs.h
/usr/include/node/uv/bsd.h
/usr/include/node/uv/darwin.h
/usr/include/node/uv/errno.h
/usr/include/node/uv/linux.h
/usr/include/node/uv/os390.h
/usr/include/node/uv/posix.h
/usr/include/node/uv/stdint-msvc2008.h
/usr/include/node/uv/sunos.h
/usr/include/node/uv/threadpool.h
/usr/include/node/uv/tree.h
/usr/include/node/uv/unix.h
/usr/include/node/uv/version.h
/usr/include/node/uv/win.h
/usr/include/node/v8-inspector-protocol.h
/usr/include/node/v8-inspector.h
/usr/include/node/v8-platform.h
/usr/include/node/v8-profiler.h
/usr/include/node/v8-testing.h
/usr/include/node/v8-util.h
/usr/include/node/v8-value-serializer-version.h
/usr/include/node/v8-version-string.h
/usr/include/node/v8-version.h
/usr/include/node/v8.h
/usr/include/node/v8config.h
/usr/share/doc/nodejs/gdbinit
/usr/share/node/common.gypi

References

Summary

In this tutorial we learn how to install nodejs-devel on Rocky Linux 8 using yum and dnf.