Install Git 2.38 on Ubuntu 22.04 / Linux Mint & Fedora

Tipsonunix
2 min readOct 7, 2022

This tutorial will be helpful for beginners to install Git 2.38 on Ubuntu 22.04 LTS, Ubuntu 20.04 LTS, Alma Linux 9, Fedora 36, and Linux Mint 21.

What is GIT?

Git is a distributed version control system (DVCS) used for software development. It is based on the concepts of version control and allows for multiple collaborators to work on a project.

Git is free and open-source software, released under GNU General Public License Version 2.0, and developed by the Git Foundation.

What’s New in GIT 2.38?

For a complete changelog refer to the release notes.

How to Install GIT 2.38 On Ubuntu / Linux Mint?

Git Can be installed on Debian-based and RPM Based systems from the source file and via repositories also.

- Method 1: Via Official PPA (Applicable for Deb-based systems)

- Method 2: Via Source File (Applicable for All distributions)

Method 1: Via Official PPA

Step 1: Add the Official PPA

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

Step 2: Install Git 2.38

sudo apt install git

Method 2: Via Source File

Step 1: Install the required dependencies before proceeding

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

Step 2: Download the Git 2.38.0 tar file from the downloads page or use the below command

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

Step 3: Extract the tar file and configure the GIT

tar -xf git-2.38.0.tar.gz -C /opt

cd /opt/git-2.38.0 && make prefix=/usr/local all install

Step 4: Verify the GIT Installation

git — version

Uninstall Git

For uninstallation of Git run the below command

sudo apt remove git

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

Conclusion

From this tutorial, you have learned how to download and install Git 2.38.0 on Ubuntu 22.04, 20.04, AlmaLinux 9, Rocky Linux 9, and Linux Mint 21

Do let us know your comments and feedback in the comments section below.

If my articles on TipsonUNIX have helped you, kindly consider buying me a coffee as a token of appreciation.

Kofi logo

Thank You for your support!!

--

--

Tipsonunix

Tipsonunix Provides Linux tutorial for beginners