How To Install hub on CentOS 7
Introduction
In this tutorial we learn how to install hub
on CentOS 7.
What is hub
hub is a command line tool that wraps
git
in order to extend it with extra features and commands that make working with GitHub easier. $ hub clone rtomayko/tilt $ git clone git
We can use yum
or dnf
to install hub
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install hub.
Install hub on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install hub
using yum
by running the following command:
sudo yum -y install hub
Install hub 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.
sudo dnf makecache
After updating yum database, We can install hub
using dnf
by running the following command:
sudo dnf -y install hub
How To Uninstall hub on CentOS 7
To uninstall only the hub
package we can use the following command:
sudo dnf remove hub
References
Summary
In this tutorial we learn how to install hub
on CentOS 7 using yum
and dnf
.