How to Install and Uninstall git Package on Debian 10 (Buster)

Last updated: May 07,2024

1. Install "git" package

In this section, we are going to explain the necessary steps to install git on Debian 10 (Buster)

$ sudo apt update $ sudo apt install git

2. Uninstall "git" package

This tutorial shows how to uninstall git on Debian 10 (Buster):

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

3. Information about the git package on Debian 10 (Buster)

Package: git
Version: 1:2.20.1-2+deb10u3
Installed-Size: 35396
Maintainer: Gerrit Pape
Architecture: amd64
Replaces: git-core (<< 1:1.7.0.4-1.), gitweb (<< 1:1.7.4~rc1)
Provides: git-completion, git-core
Depends: libc6 (>= 2.28), libcurl3-gnutls (>= 7.56.1), libexpat1 (>= 2.0.1), libpcre2-8-0 (>= 10.32), zlib1g (>= 1:1.2.0), perl, liberror-perl, git-man (>> 1:2.20.1), git-man (<< 1:2.20.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)
Description: fast, scalable, distributed revision control system
Description-md5: c1f968556452a190fe359bffd151c012
Multi-Arch: foreign
Homepage: https://git-scm.com/
Tag: devel::lang:perl, devel::library, devel::rcs, implemented-in::c,
implemented-in::perl, implemented-in::shell, interface::text-mode,
network::client, network::server, protocol::ssh, protocol::tcp,
role::devel-lib, role::program, works-with::file,
works-with::software:source, works-with::vcs
Section: vcs
Priority: optional
Filename: pool/main/g/git/git_2.20.1-2+deb10u3_amd64.deb
Size: 5633060
MD5sum: 26239597308129a784f993300114eaa9
SHA256: 4cfa1d3ffd1c75cfe5a4053cf56f63a60d0616ec8ee59a2ec7259a4e8c43fde5