25 March 2017

Cara install Git di Debian/Ubuntu, Fedora/RedHat/CentOS

Debian/Ubuntu

Untuk instalasi versi terakhir.

K: $ sudo apt-get install git -y
K: $ git --version

Jika menggunkan PPA provides

K: $ sudo add-apt-repository ppa:git-core/ppa
K: $ sudo apt-get install git -y
K: $ git --version

RedHat/CentOS

K: $ sudo yum install git
K: $ git --version

Fedora:

K: $ dnf install git
K: $ git --version

Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.

RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git.