CentOS7 配置阿里映象源

2022-09-14 00:51:12 字數 542 閱讀 2940

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-base.repo -> centos-base.repo.bak

5. 開啟centos的yum資料夾

mv centos-7.repo centos-base.repo

即是重新命名 centos-7.repo -> centos-base.repo

6. 執行yum源更新命令

依次執行上述三條命令出現如上圖所示即配置完畢。

CentOS7配置阿里yum源

1 開啟centos的yum資料夾 輸入命令cd etc yum.repos.d 輸入命令wget 如果wget命令不生效,說明還沒有安裝wget工具,輸入yum y install wget 回車進行安裝。3 備份系統原來的repo檔案 mv centos base.repo centos bas...

Centos7配置阿里epel源 yum源

環境 centos7 步驟 方式一 1.備份源 2.獲取源 3.clean makecache 4.安裝epel源 5.clean makecache 方式二 指令碼方式 我們需要先備份系統中的源,如果操作不當源損壞了或者其它原因,我們可以獲取備份的源。官網 因為我們的centos是7.6版本的,我...

Centos 7配置阿里雲yum源

1.禁用 yum外掛程式 fastestmirror 1 修改外掛程式的配置檔案 cp etc yum pluginconf.d fastestmirror.conf etc yum pluginconf.d fastestmirror.conf.bak vi etc yum pluginconf....