CentOS7配置阿里yum源

2022-08-24 06:09:11 字數 452 閱讀 9883

1、開啟centos的yum資料夾

輸入命令cd /etc/yum.repos.d/

輸入命令wget

如果wget命令不生效,說明還沒有安裝wget工具,輸入yum -y install wget 回車進行安裝。

3、備份系統原來的repo檔案

mv centos-base.repo centos-base.repo.bak

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

4、替換系統原理的repo檔案

mv centos-7.repo centos-base.repo

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

5、執行yum源更新命令

yum clean all

yum makecache

yum update

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....

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....