阿里雲映象centos7更換方法

2021-08-20 07:31:11 字數 736 閱讀 9332

國內映象源有很多,阿里雲的不錯,選擇乙個好的映象源加快centos7系統的更新公升級或者安裝軟體的速度吧!以下方法來自網路,親測有效。

1 . 備份原來的yum源

cp /etc/yum.repos

.d/centos-base.repo /etc/yum.repos

.d/centos-base.repo

.bak

2 . 設定aliyun的yum源

wget -o /etc/yum.repos

.d/centos-base.repo

.com/repo/centos-7.repo

3 . 新增epel源

epel(是由 fedora 社群打造,為 rhel 及衍生發行版如 centos、scientific linux 等提供高質量軟體包的專案。裝上 epel後,可以像在 fedora 上一樣,可以通過 yum install package-name,安裝更多軟體。

wget -p /etc/yum.repos

.d/

.com/repo/epel-7.repo

4 . 清理快取並生成新的快取

yum clean all  

yum makecache

阿里雲映象centos7更換方法

國內映象源有很多,阿里雲的不錯,選擇乙個好的映象源加快centos7系統的更新公升級或者安裝軟體的速度吧!以下方法來自網路,親測有效。1.備份原來的yum源 cp etc yum.repos d centos base.repo etc yum.repos d centos base.repo ba...

CentOS7中更換阿里源

centos 有個很方便的軟體安裝工具yum,但是預設安裝完centos,系統裡使用的是國外的centos更新源,這就造成了我們使用預設更新源安裝或者更新軟體時速度很慢的問題,甚至更新失敗。為了使用yum工具能快速的安裝更新軟體,我們需要將預設的yum更新源配置為國內的更新源。1 備份 針對所有ce...

CentOS7 配置阿里映象源

1.安裝wget yum install y wget 2.進入centos的yum資料夾 輸入命令cd etc yum.repos.d 輸入命令wget 4.備份系統原來的repo檔案 mv centos base.repo centos base.repo.bak 即是重新命名 centos b...