How to Install and Uninstall git Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 07,2024

1. Install "git" package

Here is a brief guide to show you how to install git on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install git

2. Uninstall "git" package

Please follow the guidance below to uninstall git on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove git $ sudo apt autoclean && sudo apt autoremove

3. Information about the git package on Ubuntu 20.04 LTS (Focal Fossa)

Package: git
Architecture: amd64
Version: 1:2.25.1-1ubuntu3.11
Multi-Arch: foreign
Priority: optional
Section: vcs
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Jonathan Nieder
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 35976
Provides: git-completion, git-core
Depends: libc6 (>= 2.28), libcurl3-gnutls (>= 7.56.1), libexpat1 (>= 2.0.1), libpcre2-8-0 (>= 10.22), zlib1g (>= 1:1.2.0), perl, liberror-perl, git-man (>> 1:2.25.1), git-man (<< 1:2.25.1-.)
Recommends: ca-certificates, patch, less, ssh-client
Suggests: gettext-base, git-daemon-run | git-daemon-sysvinit, git-doc, git-el, git-email, git-gui, gitk, gitweb, git-cvs, git-mediawiki, git-svn
Breaks: bash-completion (<< 1:1.90-1), cogito (<= 0.18.2+), dgit (<< 5.1~), git-buildpackage (<< 0.6.5), git-core (<< 1:1.7.0.4-1.), gitosis (<< 0.2+20090917-7), gitpkg (<< 0.15), gitweb (<< 1:1.7.4~rc1), guilt (<< 0.33), openssh-client (<< 1:6.8), stgit (<< 0.15), stgit-contrib (<< 0.15)
Replaces: git-core (<< 1:1.7.0.4-1.), gitweb (<< 1:1.7.4~rc1)
Filename: pool/main/g/git/git_2.25.1-1ubuntu3.11_amd64.deb
Size: 4604592
MD5sum: 0895d06549ca4b91deba198f24426a21
SHA1: 87f699fb4f14c7b15de6c0f37a044e5918353cee
SHA256: 21d618ebdf70c2b7e724c43b56d3c39029cb955af9206315bb1af63babd42883
SHA512: 46cf1d088aa2d9bcbda1449e7dfca9fcd8e12493de182ec588c50cbe93ee8cf4d29cc46922488543ffcbb014b8a13b2a1e569302a02b866219011183552d75ba
Homepage: https://git-scm.com/
Description: fast, scalable, distributed revision control system
Description-md5: c1f968556452a190fe359bffd151c012
Task: server, cloud-image, lubuntu-desktop

Package: git
Architecture: amd64
Version: 1:2.25.1-1ubuntu3
Multi-Arch: foreign
Priority: optional
Section: vcs
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Jonathan Nieder
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 35680
Provides: git-completion, git-core
Depends: libc6 (>= 2.28), libcurl3-gnutls (>= 7.56.1), libexpat1 (>= 2.0.1), libpcre2-8-0 (>= 10.22), zlib1g (>= 1:1.2.0), perl, liberror-perl, git-man (>> 1:2.25.1), git-man (<< 1:2.25.1-.)
Recommends: ca-certificates, patch, less, ssh-client
Suggests: gettext-base, git-daemon-run | git-daemon-sysvinit, git-doc, git-el, git-email, git-gui, gitk, gitweb, git-cvs, git-mediawiki, git-svn
Breaks: bash-completion (<< 1:1.90-1), cogito (<= 0.18.2+), dgit (<< 5.1~), git-buildpackage (<< 0.6.5), git-core (<< 1:1.7.0.4-1.), gitosis (<< 0.2+20090917-7), gitpkg (<< 0.15), gitweb (<< 1:1.7.4~rc1), guilt (<< 0.33), openssh-client (<< 1:6.8), stgit (<< 0.15), stgit-contrib (<< 0.15)
Replaces: git-core (<< 1:1.7.0.4-1.), gitweb (<< 1:1.7.4~rc1)
Filename: pool/main/g/git/git_2.25.1-1ubuntu3_amd64.deb
Size: 4553836
MD5sum: 1a0e037dde4bc91ead9e776057d809c4
SHA1: d55922ea8f62bbbadf290589c15752fbb6d625df
SHA256: b95444c42c51dd0a65b3d5ef3dafcb1401a935aef5cc7d42a7f2023c415f295c
Homepage: https://git-scm.com/
Description: fast, scalable, distributed revision control system
Description-md5: c1f968556452a190fe359bffd151c012
Task: server, cloud-image, lubuntu-desktop