how to install and uninstall git on ubuntu 16.04 LTS linux

Опубликовано: 13 Май 2026
на канале: Mohamed Gaber
380
2

How to install Git in Ubuntu or any Linux or Unix distributions
شرح كيفية تنصيب ال git على ابونتو لينكس بالتفصيل
to install please type the command depends on your OS
لعملية التنصيب اختر الامر المناسب لنظام التشغيل الخاص بك
note: you have to be authorized as superuser

Debian/Ubuntu : # apt-get install git

Fedora(up to Fedora 21) : # yum install git
Fedora(Fedora 22 and later) : # dnf install git

Gentoo : # emerge --ask --verbose dev-vcs/git

Arch Linux : # pacman -S git

openSUSE : # zypper install git

Mageia : # urpmi git

Nix/NixOS : # nix-env -i git

FreeBSD : # pkg install git

Solaris 9/10/11 (OpenCSW) : # pkgutil -i git

Solaris 11 Express : # pkg install developer/versioning/git

OpenBSD : # pkg_add git

Alpine : $ apk add git

Slitaz: $ tazpkg get-install git

and if you are using Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.
you have to install it as a 3rd-party repository
download : https://www.kernel.org/pub/software/s...

to uninstall git on ubuntu : sudo apt-get remove git
on some of linux distributions :
./configure --prefix=/scratch/custom/git
make
make unistall

to know more about how to uninstall on linux see : https://stackoverflow.com/questions/1...

source: https://git-scm.com

Enjoy