• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How to Install Git on Ubuntu 23 and Ubuntu 22 Systems

How to Install Git on Ubuntu 23 and Ubuntu 22 Systems

By Sourabh / July 15, 2023 Category: How To, Ubuntu

You can install git on Ubuntu using the APT package manager on Ubuntu 22.04 LTS (Jammy Jellyfish) and earlier releases. To install git on Ubuntu, follow the steps given below:

First, update the Ubuntu repositories of all dependencies and upgrade the system for any pending upgrades. Nex install the latest stable version of git from the official Ubuntu repositories. Run the folliwng commands:

sudo apt update
sudo apt upgrade
sudo apt install git

Once git is installed on your Linux Ubuntu system, use the “git –version” command to verify the installation.

You can also directly compile git from its source and install it on your Linux Ubuntu system. Run the folliwng commands:

sudo apt install libz-dev libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext cmake gcc -y
wget -c https://github.com/git/git/releases/tag/v2.41.0 -O - | sudo tar -xz -C /usr/src
cd /usr/src/git-*
sudo make prefix=/usr/local all
sudo make prefix=/usr/local install

Once git is installed on your Linux Ubuntu system, use the “git –version” command to verify the installation.

Primary Sidebar

Latest Posts

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

How To Shutdown Linux With A 15 Minute Delay And Message

Free AI Courses With Certificate For Beginners In India

Best AI Plugins For WordPress To Use In 2026

3 Commands To Check USB Connection In Linux Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap