How To Install nodejs-cli on CentOS 7
Introduction
In this tutorial we learn how to install nodejs-cli
on CentOS 7.
What is nodejs-cli
cli is a toolkit for rapidly building command line apps. It includes - Full featured options/arguments parser - Plugin support for adding common options and switches - Helper methods for working with input/output and spawning child processes - Output colored/styled messages, progress bars or spinners - Command auto-completion and glob support
We can use yum
or dnf
to install nodejs-cli
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-cli.
Install nodejs-cli on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install nodejs-cli
using yum
by running the following command:
Install nodejs-cli on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install nodejs-cli
using dnf
by running the following command:
How To Uninstall nodejs-cli on CentOS 7
To uninstall only the nodejs-cli
package we can use the following command:
References
Summary
In this tutorial we learn how to install nodejs-cli
on CentOS 7 using yum
and dnf
.