How to Upgrade Git Version on CentOS
Preliminary Preparation
- If wget and gcc commands are not installed
If an Old Version of Git Exists, Execute the Following
Install the Following
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
Download Source Files
wget https://www.kernel.org/pub/software/scm/git/git-2.9.3.tar.gz
Unzip the Downloaded File
tar -zxf git-2.2.0.tar.gz
Install Git
cd git-2.9.3
make prefix=/usr/local all
make prefix=/usr/local install
Check Git Version
No such file or directory または そのようなファイルやディレクトリはありません と表示された場合
Reference URL
See also