• 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

Downlaod Ubuntu 26.10 Stonking Stingray

How To Shutdown Linux With A 15 Minute Delay And Message

Using Linux Terminal How To Get Total Disk Size In GB

Count And Find Number Of Files In A Linux Directory Using Command

Check How Many Users Are Created In Linux Ubuntu

How To Check User Permissions In Linux Using Command

Check Which Folder Is Taking More Space In Ubuntu Linux

How to Install Claude Desktop App in Ubuntu Linux

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

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

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