How To Install nodejs-q on CentOS 7
Introduction
In this tutorial we learn how to install nodejs-q
on CentOS 7.
What is nodejs-q
Q is a tool for making and composing asynchronous promises in JavaScript. If a function cannot return a value or throw an exception without blocking, it can return a promise instead. A promise is an object that represents the return value or the thrown exception that the function may eventually provide. A promise can also be used as a proxy for a remote object to overcome latency. Q can exchange promises with jQuery, Dojo, When.js, WinJS, and more. Additionally, there are many libraries that produce and consume Q promises for everything from file system/database access or RPC to templating.
We can use yum
or dnf
to install nodejs-q
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nodejs-q.
Install nodejs-q on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install nodejs-q
using yum
by running the following command:
Install nodejs-q 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-q
using dnf
by running the following command:
How To Uninstall nodejs-q on CentOS 7
To uninstall only the nodejs-q
package we can use the following command:
References
Summary
In this tutorial we learn how to install nodejs-q
on CentOS 7 using yum
and dnf
.