CentOS 5平台通过yum安装git
从Fedora项目的EPEL仓库安装(推荐)
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudo yum install git-core从Webtatic仓库安装(未验证)
# Add the repository
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
# Install the latest version of git
yum install --enablerepo=webtatic git-all源代码编译安装git(未验证,但推荐)
yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel
wget https://github.com/git/git/archive/master.zip
unzip master.zip
cd ./git-master
make configure
./configure
make
sudo make install参考
Last updated