How to Install and Uninstall gh Package on Linux Mint 21.3 (Virginia)

Last updated: November 07,2024

1. Install "gh" package

This guide covers the steps necessary to install gh on Linux Mint 21.3 (Virginia)

$ sudo apt update $ sudo apt install gh

2. Uninstall "gh" package

This tutorial shows how to uninstall gh on Linux Mint 21.3 (Virginia):

$ sudo apt remove gh $ sudo apt autoclean && sudo apt autoremove

3. Information about the gh package on Linux Mint 21.3 (Virginia)

Package: gh
Architecture: amd64
Version: 2.4.0+dfsg1-2
Built-Using: go-md2man-v2 (= 2.0.1+ds1-1), gojq (= 0.12.6-1), golang-1.18 (= 1.18-1ubuntu1), golang-blackfriday-v2 (= 2.1.0-1), golang-github-alecaivazis-survey (= 2.3.2+ds1-1), golang-github-alecthomas-chroma (= 0.9.4-1), golang-github-aymerick-douceur (= 0.2.0-3), golang-github-briandowns-spinner (= 1.18.0+ds1-1), golang-github-charmbracelet-glamour (= 0.3.0+git20211129.6db32e7-1), golang-github-cli-browser (= 1.1.0-1), golang-github-cli-oauth (= 0.9.0-1), golang-github-cli-safeexec (= 1.0.0-2), golang-github-cli-shurcool-graphql (= 0.0.1-2), golang-github-davecgh-go-spew (= 1.1.1-2), golang-github-dlclark-regexp2 (= 1.4.0+ds1-1), golang-github-fatih-color (= 1.7.0-1), golang-github-gabriel-vasile-mimetype (= 1.4.0+dfsg1-2), golang-github-google-shlex (= 0.0~git20191202.e7afc7f-1), golang-github-gorilla-css (= 1.0.0-2), golang-github-gorilla-websocket (= 1.5.0-1), golang-github-hashicorp-errwrap (= 1.1.0-1), golang-github-hashicorp-go-multierror (= 1.1.1-1), golang-github-hashicorp-go-version (= 1.3.0-1), golang-github-henvic-httpretty (= 0.0.6-2), golang-github-itchyny-timefmt-go (= 0.1.3-2), golang-github-joho-godotenv (= 1.4.0-1), golang-github-kballard-go-shellquote (= 0.0~git20180428.95032a8-1), 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.12-1), golang-github-mattn-go-isatty (= 0.0.14-1), golang-github-mattn-go-runewidth (= 0.0.13-2), golang-github-mgutz-ansi (= 0.0~git20200706.d51e80e-1), golang-github-microcosm-cc-bluemonday (= 1.0.16-1), golang-github-muesli-reflow (= 0.3.0-2), golang-github-muesli-termenv (= 0.9.0-1), golang-github-muhammadmuzzammil1998-jsonc (= 0.0~git20201229.615b091-2), golang-github-olekukonko-tablewriter (= 0.0.5-1), golang-github-opentracing-opentracing-go (= 1.2.0-1), golang-github-pmezard-go-difflib (= 1.0.0-3), golang-github-rivo-uniseg (= 0.2.0-1), golang-github-shurcool-githubv4 (= 0.0~git20210725.83ba7b4-3), golang-github-shurcool-graphql (= 0.0~git20200928.18c5c31-5), golang-github-sourcegraph-jsonrpc2 (= 0.1.0-2), golang-github-spf13-cobra (= 1.3.0-1), golang-github-spf13-pflag (= 1.0.5-2), golang-github-yuin-goldmark (= 1.4.4-1), golang-github-yuin-goldmark-emoji (= 1.0.1-2), golang-golang-x-net (= 1:0.0+git20211209.491a49a+dfsg-1), golang-golang-x-sync (= 0.0~git20210220.036812b-1), golang-golang-x-sys (= 0.0~git20211216.1d35b9e-1), golang-golang-x-term (= 0.0~git20210615.6886f2d-1), golang-golang-x-text (= 0.3.7-1), golang-gopkg-yaml.v3 (= 3.0.0~git20210107.496545a-1), golang-objx (= 0.3.0-1), golang-testify (= 1.7.0+git20210824.ab6dc32-1)
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: 32928
Depends: libc6 (>= 2.34)
Conflicts: gitsome
Filename: pool/universe/g/gh/gh_2.4.0+dfsg1-2_amd64.deb
Size: 6242156
MD5sum: 487c4a76387c4a87f40facc83842d6c0
SHA1: 4b8d07631779d6473bac897ab4ce1d6e5e200c13
SHA256: 12e895fe75d9f2be39a8d57b777f6c3c69720052793d2ab748d67b2262e4f64e
SHA512: 4650cb2cb2a4eafdbcbe87240b04c72e518a8eb34614868c585f970f84153847fd1c181dd54c3f2e4a18c2996b357327a001769913851c0d805026ce2e656784
Homepage: https://cli.github.com/
Description: GitHub CLI, GitHub’s official command line tool
Description-md5: 3d12a99dda569158626806f640f0120d