• 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

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

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

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

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