Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to download git for linux and unix

Debian/Ubuntu
For the latest stable version for your release of Debian/Ubuntu

$ apt-get install git

For Ubuntu, this PPA provides the latest stable upstream Git version

$ add-apt-repository ppa:git-core/ppa
$ apt update; apt install git

Fedora

(up to Fedora 21)
$ yum install git
(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
Source by git-scm.com #
 
PREVIOUS NEXT
Tagged: #How #download #git #linux #unix
ADD COMMENT
Topic
Name
5+7 =