Guide |
The easiest way to install Git on Linux is to use the preferred Package Manager for Linux distributions. If you like to build from source code, you can find tarball on kernel.org. I hope this article is helpful to everyone ~ |
From Debian/ubuntu
$ apt-get Install git
Fedora's
$ yum Install git
(until Fedora 21)
$ DNF Install git
(Fedora 22 and later)
Gentoo's
$ emerge--ask--verbose Dev-vcs/git
Arch Linux
$ pacman-s git
openSUSE's
$ zypper Install git
Mageia
$ URPMI git
FreeBSD's
$ pkg Install git
Solaris 9/10/11 (OPENCSW)
$ pkgutil-i git
Solaris One-Express
$ pkg Install Developer/versioning/git
OpenBSD system
$ pkg_add git
Mountains
$ apk Add git
Red Hat Enterprise Edition linux,oracle linux,centos,scientific Linux and more.
Rhel and derivative products typically ship older versions of Git. You can download tarball and build from source code, or use a third-party repository, such as the IUS community project, to get an updated version of Git.
Original address: http://www.linuxprobe.com/install-linux-unix.html
This article is from the "blog" blog, please be sure to keep this source http://coderhsf.blog.51cto.com/12629645/1928909
How Linux and Unix install git