5/5 - (1 vote)

Installation Git with Default Packages is best if you want to get up and running quickly with Git, to install git on Ubuntu 16.04, Ubuntu 15.04, Ubuntu 14.04, Linux Mint, Debian run these following commands:

Install GIT on Ubuntu 20.04, Ubuntu 16.10, Ubuntu 16.04 and Debian

sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update && sudo apt-get install git

Install GIT 2.11.0 on CentOS, RHEL, Fedora

  • First of all, install required dependencies
sudo yum groupinstall "Development Tools"
sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
  • Download the package from github
wget https://github.com/git/git/archive/v2.11.0.tar.gz
  • Untar the downloaded package
tar -zxf git.ta.gz
  • Change directory to the git folder
cd git-*
  • Run the configuration and set a destination path where to install package by declaring the prefix
make configure
./configure --prefix=/usr/local
  • Finally, to complete the install, run the folowing command and check installed version
sudo make install
git --version

Conclusion

You should now have Git installed and ready to use on your system.

About the Author

Shahid Malla

Shahid Malla is an accomplished system admin and web developer, renowned for his expertise in various fields. With a strong background in WHMCS development, WordPress development, and PHP development, Shahid has honed his skills over the years to deliver exceptional results. As a top-rated freelancer, he has consistently garnered praise and recognition, earning a stellar 5-star rating from a pool of 500 reviews. Shahid's proficiency extends beyond coding and development, encompassing server configuration, server management, and web security. With his extensive knowledge and dedication to delivering high-quality solutions, Shahid Malla is your go-to professional for all your technical needs.

View All Articles