CentOS 7.5 如何升级Git实录
CentOS7自帶的git版本1.8.3.1,這個(gè)版本有點(diǎn)低了。于是決定折騰升級, 實(shí)操記錄在此:
1、確認(rèn)你的當(dāng)前git版本
在終端輸入:
git --version
?
2、使用root賬號
在終端終入:
su root
然后輸入root賬號的密碼,注意linux下輸密碼時(shí)界面是沒有變化的
?
3、配置存儲(chǔ)庫
啟用Wandisco GIT存儲(chǔ)庫,在此之前我們先寫入新yum存儲(chǔ)庫配置文件,在終端輸入:
vim /etc/yum.repos.d/wandisco-git.repo
按i,進(jìn)入插入模式,輸入:
[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
按ESC鍵,然后輸入:wq回車,保存存退出
?
4、導(dǎo)入存儲(chǔ)庫GPG密鑰
在終端輸入:
sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
?
5、安裝Git
在終端輸入:
yum install git
?
6、驗(yàn)證Git版本
在終端輸入:
git --version
總結(jié)
以上是生活随笔為你收集整理的CentOS 7.5 如何升级Git实录的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在CentOS 7.7 x86_64上安
- 下一篇: Python中的urllib.quote