• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to install git on ubuntu 16.04

by admin

This small howto post covers the installation and configuration of Git client on your ubuntu 16.04. We will install git version 2.9.3 that comes with a large number of updates versus previous release 2.8. Git is a version control system that is used for software development and other version control tasks.

This post assumes you have at least basic knowledge of Linux, know basic shell command for Linux. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Git on Ubuntu 16.04 (Xenial Xerus) server.

Step 1 – Update repository list.

First make sure that all your system packages are up-to-date by running these commands in the terminal.

# sudo apt-get update

Step 2 – Installing Git

Ubuntu 16.04 default repo comes with Git 2.7.x. As versions 2.9 are not part of the Ubuntu repositories, you need to add the git-core personal package archive. Run the following commands in Terminal to install Git 2.9.3 on Ubuntu, via PPA:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Step 3 – Installation check

To check if our installation has been successfully and current version installed of Git use following command:

# git --version
git version 2.8.1

Filed Under: Linux, Ubuntu, Ubuntu 16.04

Some more articles you might also be interested in …

  1. “aws sqs” Command Examples
  2. gvpack Command Examples
  3. bcomps Command Examples (Decompose graphs into their biconnected components)
  4. Difference between soft links and hard links in Linux
  5. apt: command not found
  6. iftop Command Examples in Linux
  7. smbpasswd: command not found
  8. mpirun.openmpi: command not found
  9. caddy: An enterprise-ready open source web server with automatic HTTPS, written in Go
  10. How to uninstall postgresql-client-common software package in Ubuntu

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright