Linux-GIT源代码包安装
下载安装包
个人收集
wget http://cunqi0105-1300757323.cos.ap-shanghai.myqcloud.com/install-pkg/git-2.24.1.tar.gz
下载地址:https://mirrors.edge.kernel.org/pub/software/scm/git/
安装依赖文件
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2x autoconf automake libtool
systemctl stop firewalld && setenforce 0 && systemctl disable firewalld
编译安装
cd /root && tar zxvf git-2.24.1.tar.gz -C /usr/src/ && cd /usr/src/git-2.24.1
make configure
./configure --prefix=/usr/local/git && make && make install
添加变量文件
export PATH=/usr/local/git/bin:$PATH
source /etc/profile
git --version
rm -rf /usr/src/git-2.24.1
本文摘抄或总结其他笔记,笔记不涉及任何商业用途,如果侵权请及时联系处理