DEV Community


Posted on

Will gh collide(fight, enter in conflicts) with hub?

Hi everyone,

Today I am writing as I promised about the experience of having hub and gh installed at the same time.

Also if you don't know Dear Reader any of the above CLI(command-line) tools, I have them covered in the following articles:

The PC that I am testing this setup is a Kubuntu 19.10.

What is Kubuntu?

Kubuntu is based on Ubuntu and KDE and it is a Linux operating system with a GUI(Graphical USer interface).

So for my setup, I need to do the following to install gh on my system:

Navigate to release page

Download at the current time of writing this article this version is the latest deb file gh_0.5.7_linux_amd64.deb

The file has been saved in Downloads

To install: sudo apt install ~/Downloads/gh_0.5.7_linux_amd64.deb

The output should look like this

sudo apt install ~/Downloads/gh_0.5.7_linux_amd64.deb                                     ✔  at 13:20:22 
[sudo] password for dan: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'gh' instead of '/home/dan/Downloads/gh_0.5.7_linux_amd64.deb'
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/5.929 kB of archives.
After this operation, 16,6 MB of additional disk space will be used.
Get:1 /home/dan/Downloads/gh_0.5.7_linux_amd64.deb gh amd64 0.5.7 [5.929 kB]
Selecting previously unselected package gh.
(Reading database ... 337168 files and directories currently installed.)
Preparing to unpack .../gh_0.5.7_linux_amd64.deb ...
Unpacking gh (0.5.7) ...
Setting up gh (0.5.7) ...

Gh is successfully installed now let's see if it works.

Type gh --version

 ~  gh --version                                                                            1 ✘  at 13:22:10 
gh version 0.5.7 (2020-02-20)

Also to prove that I also have hub installed let's type

hub --version

 ~  hub --version                                                                             ✔  at 13:23:50 
git version 2.20.1
hub version 2.7.0

No problem at all so far they work and we can see that gh commands don't interfere with hub's commands.

So it should safe to use both of them alongside each other.

I hope you enjoyed this article Dear reader and also if you find it useful share it on social.

Did this article convince you to use both of them Dear reader?, what was your experience when you tried them?


Top comments (0)