How to Install and Uninstall gh Package on Ubuntu 24.04 LTS (Noble Numbat)
Last updated: November 07,2024
1. Install "gh" package
This tutorial shows how to install gh on Ubuntu 24.04 LTS (Noble Numbat)
$
sudo apt update
Copied
$
sudo apt install
gh
Copied
2. Uninstall "gh" package
This is a short guide on how to uninstall gh on Ubuntu 24.04 LTS (Noble Numbat):
$
sudo apt remove
gh
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the gh package on Ubuntu 24.04 LTS (Noble Numbat)
Package: gh
Architecture: amd64
Version: 2.44.1-2
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 44347
Depends: libc6 (>= 2.34)
Conflicts: gitsome (<< 0.8.0+ds-7.1)
Filename: pool/universe/g/gh/gh_2.44.1-2_amd64.deb
Size: 8826454
MD5sum: 56bacfa8d40a0171491005b0bc418870
SHA1: 79c474e2d2ce2754f90c31265987aa3e4279fe41
SHA256: a6392165b10cb855fba19e93d04f1af004a1e2506f5c500e180ccedaa64369c8
SHA512: 237c91d9b8ebfb35bf3cee77230324e1f99071475e8cc67e7f07798a15148ead94f342e19dfb4f0d1254e4636938d95f30315085f5d3d8f72129bf69510d4e2a
Homepage: https://cli.github.com/
Description: GitHub CLI, GitHub’s official command line tool
Description-md5: 3d12a99dda569158626806f640f0120d
Static-Built-Using: go-md2man-v2 (= 2.0.3+ds1-1), gojq (= 0.12.13-1), golang-1.22 (= 1.22.0-2), golang-blackfriday-v2 (= 2.1.0-1), golang-dbus (= 5.1.0-1), golang-github-alecaivazis-survey (= 2.3.7-1), golang-github-alecthomas-chroma (= 0.10.0-5), golang-github-aymanbagabas-go-osc52 (= 1.2.1-1), golang-github-aymerick-douceur (= 0.2.0-3build1), golang-github-briandowns-spinner (= 1.18.1+ds1-1), golang-github-cenkalti-backoff (= 4.2.1-1), golang-github-charmbracelet-glamour (= 0.6.0-1), golang-github-charmbracelet-lipgloss (= 0.5.0-1), golang-github-cli-browser (= 1.3.0-1), golang-github-cli-go-gh-v2 (= 2.5.0-1), golang-github-cli-oauth (= 1.0.1-1), golang-github-cli-safeexec (= 1.0.1-1), golang-github-cli-shurcool-graphql (= 0.0.4-1), golang-github-davecgh-go-spew (= 1.1.1-3), golang-github-fatih-color (= 1.16.0-1), golang-github-gabriel-vasile-mimetype (= 1.4.3+dfsg1-2), golang-github-gdamore-encoding (= 1.0.0-3), golang-github-gdamore-tcell.v2 (= 2.6.0-1), golang-github-golang-protobuf-1-5 (= 1.5.3-1), golang-github-google-shlex (= 0.0~git20191202.e7afc7f-1), golang-github-gorilla-css (= 1.0.1-1), golang-github-gorilla-websocket (= 1.5.1-1), golang-github-hashicorp-errwrap (= 1.1.0-1), golang-github-hashicorp-go-multierror (= 1.1.1-2), golang-github-hashicorp-go-version (= 1.6.0-1), golang-github-henvic-httpretty (= 0.1.3-1), golang-github-itchyny-timefmt-go (= 0.1.5-1), golang-github-joho-godotenv (= 1.5.1-1), golang-github-kballard-go-shellquote (= 0.0~git20180428.95032a8-2), golang-github-lucasb-eyer-go-colorful (= 1.2.0-1), golang-github-makenowjust-heredoc (= 1.0.0-1), golang-github-mattn-go-colorable (= 0.1.13-1), golang-github-mattn-go-isatty (= 0.0.20-1), golang-github-mattn-go-runewidth (= 0.0.15-2), golang-github-mgutz-ansi (= 0.0~git20200706.d51e80e-1), golang-github-microcosm-cc-bluemonday (= 1.0.26-1), golang-github-microsoft-dev-tunnels (= 0.0.25-2), golang-github-muesli-reflow (= 0.3.0-2), golang-github-muesli-termenv (= 0.13.0-2), golang-github-muhammadmuzzammil1998-jsonc (= 0.0~git20201229.615b091-2), golang-github-olekukonko-tablewriter (= 0.0.5-2), golang-github-opentracing-opentracing-go (= 1.2.0-2), golang-github-pmezard-go-difflib (= 1.0.0-3), golang-github-rivo-tview (= 0.0~git20230530.8bd761d-1), golang-github-rivo-uniseg (= 0.4.4-1), golang-github-rodaine-table (= 1.1.0-2), golang-github-shurcool-githubv4 (= 0.0~git20231126.1cffa1f-1), golang-github-shurcool-graphql (= 0.0~git20220606.3cf50f8-1), golang-github-spf13-cobra (= 1.8.0-1), golang-github-spf13-pflag (= 1.0.6~git20210604-d5e0c0615ace-1), golang-github-thlib-go-timezone-local (= 0.0~git20210907.ef149e4-5), golang-github-yuin-goldmark (= 1.7.0-1), golang-github-yuin-goldmark-emoji (= 1.0.2-1), golang-github-zalando-go-keyring (= 0.2.3-1), golang-go.crypto (= 1:0.19.0-1), golang-golang-x-net (= 1:0.21.0+dfsg-1), golang-golang-x-sync (= 0.6.0-1), golang-golang-x-sys (= 0.17.0-1), golang-golang-x-term (= 0.17.0-1), golang-golang-x-text (= 0.14.0-1), golang-google-genproto (= 0.0~git20200413.b5235f6-3), golang-google-protobuf (= 1.32.0-1), golang-gopkg-yaml.v3 (= 3.0.1-3), golang-objx (= 0.5.0-1), golang-testify (= 1.8.4-1)
Architecture: amd64
Version: 2.44.1-2
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Go Packaging Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 44347
Depends: libc6 (>= 2.34)
Conflicts: gitsome (<< 0.8.0+ds-7.1)
Filename: pool/universe/g/gh/gh_2.44.1-2_amd64.deb
Size: 8826454
MD5sum: 56bacfa8d40a0171491005b0bc418870
SHA1: 79c474e2d2ce2754f90c31265987aa3e4279fe41
SHA256: a6392165b10cb855fba19e93d04f1af004a1e2506f5c500e180ccedaa64369c8
SHA512: 237c91d9b8ebfb35bf3cee77230324e1f99071475e8cc67e7f07798a15148ead94f342e19dfb4f0d1254e4636938d95f30315085f5d3d8f72129bf69510d4e2a
Homepage: https://cli.github.com/
Description: GitHub CLI, GitHub’s official command line tool
Description-md5: 3d12a99dda569158626806f640f0120d
Static-Built-Using: go-md2man-v2 (= 2.0.3+ds1-1), gojq (= 0.12.13-1), golang-1.22 (= 1.22.0-2), golang-blackfriday-v2 (= 2.1.0-1), golang-dbus (= 5.1.0-1), golang-github-alecaivazis-survey (= 2.3.7-1), golang-github-alecthomas-chroma (= 0.10.0-5), golang-github-aymanbagabas-go-osc52 (= 1.2.1-1), golang-github-aymerick-douceur (= 0.2.0-3build1), golang-github-briandowns-spinner (= 1.18.1+ds1-1), golang-github-cenkalti-backoff (= 4.2.1-1), golang-github-charmbracelet-glamour (= 0.6.0-1), golang-github-charmbracelet-lipgloss (= 0.5.0-1), golang-github-cli-browser (= 1.3.0-1), golang-github-cli-go-gh-v2 (= 2.5.0-1), golang-github-cli-oauth (= 1.0.1-1), golang-github-cli-safeexec (= 1.0.1-1), golang-github-cli-shurcool-graphql (= 0.0.4-1), golang-github-davecgh-go-spew (= 1.1.1-3), golang-github-fatih-color (= 1.16.0-1), golang-github-gabriel-vasile-mimetype (= 1.4.3+dfsg1-2), golang-github-gdamore-encoding (= 1.0.0-3), golang-github-gdamore-tcell.v2 (= 2.6.0-1), golang-github-golang-protobuf-1-5 (= 1.5.3-1), golang-github-google-shlex (= 0.0~git20191202.e7afc7f-1), golang-github-gorilla-css (= 1.0.1-1), golang-github-gorilla-websocket (= 1.5.1-1), golang-github-hashicorp-errwrap (= 1.1.0-1), golang-github-hashicorp-go-multierror (= 1.1.1-2), golang-github-hashicorp-go-version (= 1.6.0-1), golang-github-henvic-httpretty (= 0.1.3-1), golang-github-itchyny-timefmt-go (= 0.1.5-1), golang-github-joho-godotenv (= 1.5.1-1), golang-github-kballard-go-shellquote (= 0.0~git20180428.95032a8-2), golang-github-lucasb-eyer-go-colorful (= 1.2.0-1), golang-github-makenowjust-heredoc (= 1.0.0-1), golang-github-mattn-go-colorable (= 0.1.13-1), golang-github-mattn-go-isatty (= 0.0.20-1), golang-github-mattn-go-runewidth (= 0.0.15-2), golang-github-mgutz-ansi (= 0.0~git20200706.d51e80e-1), golang-github-microcosm-cc-bluemonday (= 1.0.26-1), golang-github-microsoft-dev-tunnels (= 0.0.25-2), golang-github-muesli-reflow (= 0.3.0-2), golang-github-muesli-termenv (= 0.13.0-2), golang-github-muhammadmuzzammil1998-jsonc (= 0.0~git20201229.615b091-2), golang-github-olekukonko-tablewriter (= 0.0.5-2), golang-github-opentracing-opentracing-go (= 1.2.0-2), golang-github-pmezard-go-difflib (= 1.0.0-3), golang-github-rivo-tview (= 0.0~git20230530.8bd761d-1), golang-github-rivo-uniseg (= 0.4.4-1), golang-github-rodaine-table (= 1.1.0-2), golang-github-shurcool-githubv4 (= 0.0~git20231126.1cffa1f-1), golang-github-shurcool-graphql (= 0.0~git20220606.3cf50f8-1), golang-github-spf13-cobra (= 1.8.0-1), golang-github-spf13-pflag (= 1.0.6~git20210604-d5e0c0615ace-1), golang-github-thlib-go-timezone-local (= 0.0~git20210907.ef149e4-5), golang-github-yuin-goldmark (= 1.7.0-1), golang-github-yuin-goldmark-emoji (= 1.0.2-1), golang-github-zalando-go-keyring (= 0.2.3-1), golang-go.crypto (= 1:0.19.0-1), golang-golang-x-net (= 1:0.21.0+dfsg-1), golang-golang-x-sync (= 0.6.0-1), golang-golang-x-sys (= 0.17.0-1), golang-golang-x-term (= 0.17.0-1), golang-golang-x-text (= 0.14.0-1), golang-google-genproto (= 0.0~git20200413.b5235f6-3), golang-google-protobuf (= 1.32.0-1), golang-gopkg-yaml.v3 (= 3.0.1-3), golang-objx (= 0.5.0-1), golang-testify (= 1.8.4-1)