Centos7.6如何升級git版本
1.輸入
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc -y
按回車鍵安裝依賴軟件
2.輸入
yum install gcc perl-ExtUtils-MakeMaker -y
按回車鍵安裝依賴軟件
3.輸入yum remove git -y,按回車鍵卸載舊版git
4.輸入
wget --no-check-certificate https://www.kernel.org/pub/ software/scm/git/git-2.15.1.tar.xz
按回車鍵
5.輸入tar -vxf git-2.15.1.tar.xz,按回車鍵
6.輸入
cd git-2.15.1
按回車鍵
7.輸入
make git all
按回車鍵
8.輸入
make git install
按回車鍵
9.輸入
source /etc/profile
按回車鍵
10.輸入
git --version
可以查看版本
版權保護: 本文「Centos7.6如何升級git版本」由 云主機配置專家 原創(chuàng),轉載請保留鏈接: http://www.iqcg.cn/docs/system/532.html