CentOS7.7 yum安裝新版git


CentOS7.7自帶git版本較老

先卸載自帶git

# yum remove git

 

添加yum源

# vim /etc/yum.repos.d/wandisco-git.repo

[wandisco-git]

name=Wandisco GIT Repository

baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/

enabled=1

gpgcheck=1

gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

 

導入存儲庫GPG密鑰

rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

 

安裝git

# yum -y install git

 

完成之后驗證一下

# git --version


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM