How to Install and Uninstall git Package on Debian 11 (Bullseye)

Last updated: November 24,2024

1. Install "git" package

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

$ sudo apt update $ sudo apt install git

2. Uninstall "git" package

Please follow the steps below to uninstall git on Debian 11 (Bullseye):

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

3. Information about the git package on Debian 11 (Bullseye)

Package: git
Version: 1:2.30.2-1
Installed-Size: 35058
Maintainer: Jonathan Nieder
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.22), zlib1g (>= 1:1.2.0), perl, liberror-perl, git-man (>> 1:2.30.2), git-man (<< 1:2.30.2-.)
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.30.2-1_amd64.deb
Size: 5527496
MD5sum: 927610ac33981f208f76cc71046ca2e1
SHA256: 1efbc55de3ca1211fe4c0afc559f2edbded30ed3095d94dd602311bf604b3fd7