Install Git 2.11.0 on Ubuntu, Linux Mint, CentOS, RHEL, Fedora

28/12/2020
Git

Git 2.11.0 is the most recent stable update and was released back in November 2016. Git is a free easy to use version control system while it has a tiny footprint with lightning fast performance. Version control for those who may not know, is a system that records changes to a file or a set of files over a period of time so that you can recall previous specific versions when needed.

Git outclasses the likes of Subversion, CVS, Perforce, and ClearCase with some niche features like cheap local branching, convenient staging areas, and multiple workflows.

See Changelog for recent updates

How to Install GIT 2.11.0 on Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 15.04, Ubuntu 14.04, Linux Mint, Debian

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

How to remove GIT from Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 15.04, Ubuntu 14.04, Linux Mint, Debian

sudo add-apt-repository --remove ppa:git-core/ppa  sudo apt-get remove git

How to Install GIT 2.11.0 on CentOS, RHEL, Fedora

We will be compiling this package on the above OSes. But if git repo is up to date, then simply run the following command to install straight “sudo yum install git“. This is the quickest way to install git but since sometimes, if the repo is not up to date, then follow the steps below to compile the package

  • First of all, install required dependencies
sudo yum groupinstall "Development Tools"  sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
  • Download the package from github
wget https://github.com/git/git/archive/v2.11.0.tar.gz
  • Untar the downloaded package
tar -zxf git.ta.gz
  • Change directory to the git folder
cd git-*
  • Run the configuration and set a destination path where to install package by declaring the prefix
make configure  ./configure --prefix=/usr/local
  • Finally, to complete the install, run the folowing command and check installed version
sudo make install  git --version
ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Git: How to Revert Last Commit?

Git is an effective tool that keeps track of your code. And one of the great features of the tool is that you can easily...
28/12/2020

5 Best Self-hosted GitHub Alternatives

GitHub may be the most popular computer code hosting service for version control using Git, which is a distributed version...
29/12/2020

Emacs git Integration

How to use git in Emacs Download and config To get started using git in Emacs for version control, choose and install a...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Dịch Vụ Xây Dựng Hệ Thống Peering Với Internet Exchange (IXP)
04/04/2025

Dịch Vụ Triển Khai VPN Site-to-Site & Remote Access
04/04/2025

Dịch Vụ Thiết Lập Hệ Thống Tường Lửa (Firewall)
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ảo Hóa & Cloud
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ceph
04/04/2025