Git a free and open-source distributed version control system designed to handle everything from small to large projects with speed...
In this tutorial, I will show you how to install git 2.26.2 On Ubuntu 20.04 LTS / 18.04, LinuxMint and CentOS
The latest version of GIT is 2.26.2 which is a stable version and it is released on 19th April 2020
Changelog
- Security fix that appears in v2.17.5
How to install Git 2.26.2 in Ubuntu / LinuxMint & CentOS
2 ways we can install git in Ubuntu 20.04, Ubuntu 19.10, LinuxMint 19, CentOS 8.1
- Method 1: via PPA
- Method 2: via tar file
Method 1: via PPA
Step 1: Add the Official PPA provided by GIT
sudo add-apt-repository ppa:git-core/ppaStep 2: Update the Repository
sudo apt-get updateStep 3: Install GIT 2.26.2
sudo apt-get install git
Method 2: via tar file
Step 1: Install the dependencies before compiling the packagesFor Debian distributions
apt-get install libssl-dev libcurl4-gnutls-dev zlib1g-devFor CentOS
yum install openssl-devel curl-devel expat-devel gettext-devel zlib-devel perl-ExtUtils-MakeMakerStep 2: Download the tar file from the official site by using wget
wget https://www.kernel.org/pub/software/scm/git/git-2.26.2.tar.gzStep 2: Extract the package and configure it
tar -xvzf git-2.26.2.tar.gzStep 3: Compile the git
./configure && make && make installStep 4: Verify the version
git --version
COMMENTS