Install Git 2.30.1 in Ubuntu 20.04 / Linux Mint / CentOS & Fedora

Git Logo

This tutorial will be helpful for beginners to install git 2.30.1 in Ubuntu 20.04 LTS, Ubuntu 20.10 LTS, CentOS 8.X, Fedora 33, and Linux Mint 20.

The latest version of GIT is 2.30.1 which is a stable version and it is released on 8th Feb 2020 and this release is primarily to fix merges accumulated on the master front to prepare for the 2.31 release.

Related:  Install Git 2.28.0 in Ubuntu 20.04 / Linux Mint / CentOS

What’s new in Git 2.30.1?

For a complete changelog refer to the release notes

How to Install Git 2.30.1 in Ubuntu / Linux Mint  / Fedora & CentOS?

Method 1: Via PPA

Step 1: Add the Official GIT PPA

sudo add-apt-repository ppa:git-core/ppa

Step 2: Update the repository and install git

sudo apt update && sudo apt install git

Method 2: Via Source file

Step 1: Install the required dependencies

For Ubuntu

apt install libssl-dev libcurl4-gnutls-dev zlib1g-dev

For CentOS / Fedora

yum install openssl-devel curl-devel expat-devel gettext-devel zlib-devel perl-ExtUtils-MakeMaker

Step 2: Download the source file using the below command

wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.30.0.tar.gz

Step 3: Extract the package and configure it

tar -xvzf git-2.30.1.tar.gz && cd git-2.30.1 && ./configure –prefix=/usr/local/git

Step 4: Compile the GIT

make && make install

Verify the installed version using the below command

git –version

Leave a Reply

Your email address will not be published. Required fields are marked *

Secured By miniOrange