How to Install and Uninstall git Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 07,2024

1. Install "git" package

Please follow the steps below to install git on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install git

2. Uninstall "git" package

Please follow the guidance below to uninstall git on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the git package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: git
Architecture: amd64
Version: 1:2.7.4-0ubuntu1.10
Multi-Arch: foreign
Priority: optional
Section: vcs
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Gerrit Pape
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23572
Provides: git-completion, git-core
Depends: libc6 (>= 2.16), libcurl3-gnutls (>= 7.16.2), libexpat1 (>= 2.0.1), libpcre3, zlib1g (>= 1:1.2.0), perl-modules, liberror-perl, git-man (>> 1:2.7.4), git-man (<< 1:2.7.4-.)
Recommends: patch, less, rsync, ssh-client
Suggests: gettext-base, git-daemon-run | git-daemon-sysvinit, git-doc, git-el, git-email, git-gui, gitk, gitweb, git-arch, git-cvs, git-mediawiki, git-svn
Breaks: bash-completion (<< 1:1.90-1), cogito (<= 0.18.2+), 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), 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.7.4-0ubuntu1.10_amd64.deb
Size: 3182874
MD5sum: c4f37152ef171b361c9816405d49303a
SHA1: 554b3cc8c9d9272736cd3ba1b9a17fb68ab1aa93
SHA256: 96bf35b673281ea195c7897ee1a2337a999ee833c79000e6913e5d31e7cecb5a
SHA512: 8cf51822c504bf214134ce787af9b7a562aba703e0b14fff3d35ced99106c0f362f260c15d4e0ff0746712ca1b898fa300522c765b86481677210d83984657d3
Homepage: https://git-scm.com/
Description-en: fast, scalable, distributed revision control system
Git is popular version control system designed to handle very large
projects with speed and efficiency; it is used for many high profile
open source projects, most notably the Linux kernel.
.
Git falls in the category of distributed source code management tools.
Every Git working directory is a full-fledged repository with full
revision tracking capabilities, not dependent on network access or a
central server.
.
This package provides the git main components with minimal dependencies.
Additional functionality, e.g. a graphical user interface and revision
tree visualizer, tools for interoperating with other VCS's, or a web
interface, is provided as separate git* packages.
Description-md5: c1f968556452a190fe359bffd151c012
Task: cloud-image, server
Supported: 5y

Package: git
Priority: optional
Section: vcs
Installed-Size: 23484
Maintainer: Ubuntu Developers
Original-Maintainer: Gerrit Pape
Architecture: amd64
Version: 1:2.7.4-0ubuntu1
Replaces: git-core (<< 1:1.7.0.4-1.), gitweb (<< 1:1.7.4~rc1)
Provides: git-completion, git-core
Depends: libc6 (>= 2.16), libcurl3-gnutls (>= 7.16.2), libexpat1 (>= 2.0.1), libpcre3, zlib1g (>= 1:1.2.0), perl-modules, liberror-perl, git-man (>> 1:2.7.4), git-man (<< 1:2.7.4-.)
Recommends: patch, less, rsync, ssh-client
Suggests: gettext-base, git-daemon-run | git-daemon-sysvinit, git-doc, git-el, git-email, git-gui, gitk, gitweb, git-arch, git-cvs, git-mediawiki, git-svn
Breaks: bash-completion (<< 1:1.90-1), cogito (<= 0.18.2+), 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), stgit (<< 0.15), stgit-contrib (<< 0.15)
Filename: pool/main/g/git/git_2.7.4-0ubuntu1_amd64.deb
Size: 3006120
MD5sum: 0412535c34d3f900629e9409ad73aead
SHA1: 87888d183e279e53035587cc2c42d16c6a06612f
SHA256: 8189c2dfe9ae6f3dc00c4cf858acbc53ba99a11d62646b2b7c62af9acb5076cd
Description-en: fast, scalable, distributed revision control system
Git is popular version control system designed to handle very large
projects with speed and efficiency; it is used for many high profile
open source projects, most notably the Linux kernel.
.
Git falls in the category of distributed source code management tools.
Every Git working directory is a full-fledged repository with full
revision tracking capabilities, not dependent on network access or a
central server.
.
This package provides the git main components with minimal dependencies.
Additional functionality, e.g. a graphical user interface and revision
tree visualizer, tools for interoperating with other VCS's, or a web
interface, is provided as separate git* packages.
Description-md5: c1f968556452a190fe359bffd151c012
Multi-Arch: foreign
Homepage: https://git-scm.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: cloud-image, server