How to Install Git 2.10 on Ubuntu 16.04, Debian 8, Fedora 24, Arch Linux

As you may or may not know, Git is a very popular, open-source, distributed source code management system created by Linus Torvalds who started the Linux kernel 25 years ago.

The latest version Git 2.10 was released on September 2nd, 2016. Git 2.10 brings hundreds of changes, including:

  • progress reporting for post-receive operations
  • signature verification improvement
  • adds more color attributes
  • and many more …

Install Git 2.10 on Debian 8, Ubuntu 16.04, Linux Mint 18, CentOS 7, Fedora 24, Arch Linux

Git is included in most Linux distribution repositories, however it’s often not the latest version. The Git team maintain a PPA for Ubuntu, but right now (Sep 8th) it still contains Git 2.9. So to install Git 2.10, we have to compile it from source.

Open up a terminal window (CTRL+ALT+T). Download Git 2.10 source code from Github and extract it.

wget https://github.com/git/git/archive/v2.10.0.tar.gz

tar xzvf v2.10.0.tar.gz

Cd into the newly created directory.

cd git-2.10.0/

Install build dependency.

Debian 8/Ubuntu 16.04/Linux Mint 18

sudo apt install autoconf zlib1g-dev gettext asciidoc xsltproc xmlto

CentOS 7

sudo yum install autoconf gcc zlib-devel perl-devel asciidoc xmlto

Fedora 24

sudo dnf install autoconf gcc zlib-devel perl-devel asciidoc xmlto

Arch Linux/Manjaro

sudo pacman -S autoconf asciidoc xmlto

Generate the configure script.

make configure

Then configure the build environment. --prefix=/usr option will cause the installation to replace your existing Git version located at /usr/bin/git.

./configure --prefix=/usr

Next, compile it. Grab a cup of coffee or tea. This can take some time.

make all doc

Once the compilation is complete, install it by running the following command.

sudo make install install-doc install-html

To check your Git version, run:

git --version

install git 2.10 on ubuntu 16.04

Git documentation is installed at /usr/share/doc/git/.

That’s it! I hope this article helped you install Git 2.10 distributed version control system on Debian 8, Ubuntu 16.04, Linux Mint 18, CentOS 7, Fedora 24 or Arch Linux. As always, if you found this post useful, then subscribe to our free newsletter or follow us on Google+, Twitter orlike our Facebook page. Thanks for visiting!

Rate this tutorial
[Total: 5 Average: 5]

One Response to “How to Install Git 2.10 on Ubuntu 16.04, Debian 8, Fedora 24, Arch Linux

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here