How To Install hub on Fedora 34

hub is A command-line tool that makes git easier to use with GitHub

Introduction

In this tutorial we learn how to install hub on Fedora 34.

What is hub

A command-line tool that makes git easier to use with GitHub

We can use yum or dnf to install hub on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install hub.

Install hub on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install hub

Install hub on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install hub using yum by running the following command:

sudo yum -y install hub

How To Uninstall hub on Fedora 34

To uninstall only the hub package we can use the following command:

sudo dnf remove hub

hub Package Contents on Fedora 34

/usr/bin/hub
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/1e6406e6c1a813d4402ee6fe2042488f52f63c
/usr/share/bash-completion/completions/hub
/usr/share/doc/hub
/usr/share/doc/hub/CODE_OF_CONDUCT.md
/usr/share/doc/hub/CONTRIBUTING.md
/usr/share/doc/hub/README-completion.md
/usr/share/doc/hub/README-features.md
/usr/share/doc/hub/README.md
/usr/share/doc/hub/changelog
/usr/share/doc/hub/hub.1.md
/usr/share/fish
/usr/share/fish/completions
/usr/share/fish/completions/hub.fish
/usr/share/licenses/hub
/usr/share/licenses/hub/LICENSE
/usr/share/man/man1/hub-alias.1.gz
/usr/share/man/man1/hub-am.1.gz
/usr/share/man/man1/hub-api.1.gz
/usr/share/man/man1/hub-apply.1.gz
/usr/share/man/man1/hub-browse.1.gz
/usr/share/man/man1/hub-checkout.1.gz
/usr/share/man/man1/hub-cherry-pick.1.gz
/usr/share/man/man1/hub-ci-status.1.gz
/usr/share/man/man1/hub-clone.1.gz
/usr/share/man/man1/hub-compare.1.gz
/usr/share/man/man1/hub-create.1.gz
/usr/share/man/man1/hub-delete.1.gz
/usr/share/man/man1/hub-fetch.1.gz
/usr/share/man/man1/hub-fork.1.gz
/usr/share/man/man1/hub-gist.1.gz
/usr/share/man/man1/hub-help.1.gz
/usr/share/man/man1/hub-init.1.gz
/usr/share/man/man1/hub-issue.1.gz
/usr/share/man/man1/hub-merge.1.gz
/usr/share/man/man1/hub-pr.1.gz
/usr/share/man/man1/hub-pull-request.1.gz
/usr/share/man/man1/hub-push.1.gz
/usr/share/man/man1/hub-release.1.gz
/usr/share/man/man1/hub-remote.1.gz
/usr/share/man/man1/hub-submodule.1.gz
/usr/share/man/man1/hub-sync.1.gz
/usr/share/man/man1/hub.1.gz
/usr/share/vim
/usr/share/vim/vimfiles
/usr/share/vim/vimfiles/ftdetect
/usr/share/vim/vimfiles/ftdetect/pullrequest.vim
/usr/share/vim/vimfiles/syntax
/usr/share/vim/vimfiles/syntax/pullrequest.vim
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_hub

References

Summary

In this tutorial we learn how to install hub on Fedora 34 using yum and dnf.