CentOS7 如何公升級Git

2022-07-16 12:51:11 字數 799 閱讀 8887

centos7自帶的git版本1.8.3.1,這個版本有點低了。於是決定折騰公升級,我首先想到的是用update更新:

yum update git

無意中在網上看到,另乙個思路,記錄在此:

1、確認你的當前git版本

在終端輸入:

git --version

2、使用root賬號

在終端終入:

su root

然後輸入root賬號的密碼,注意linux下輸密碼時介面是沒有變化的

3、配置儲存庫

啟用wandisco git儲存庫,在此之前我們先寫入新yum儲存庫配置檔案,在終端輸入:

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

按i,進入插入模式,輸入:

[wandisco-git]

name=wandisco git repository

baseurl=

enabled=1

gpgcheck=1

gpgkey=

按esc鍵,然後輸入:wq回車,儲存存退出

4、匯入儲存庫gpg金鑰

在終端輸入:

sudo rpm --import

5、安裝git

在終端輸入:

yum install git

6、驗證git版本

在終端輸入:

git --version

centos7 核心公升級

centos官網提供的映象始終是3.10 版本,有時需要更高的核心版本,下面是公升級到最新版本的步驟 1 公升級核心需要使用 elrepo 的yum 源,首先我們匯入 elrepo 的 key rpm import 2 安裝 elrepo 源 rpm uvh 3 在yum的elrepo源中,main...

Centos 7 核心公升級

一 公升級至最新版本核心 1.公升級系統包,命令如下。yum update y 2.公升級核心,命令如下。rpm import rpm uvh yum enablerepo elrepo kernel install kernel ml devel kernel ml y mainline 此時,等...

CentOS 7 核心公升級

部署kubernetes集群,由於centos7的核心版本為3.10,存在bug使kubernetes執行出現問題,因此需要公升級核心至4.0 為centos安裝elrepo包 yum install yum y enablerepo elrepo kernel install kernel lt ...