Centos7更新yum源為163源

2021-09-10 02:17:30 字數 400 閱讀 9417

第一步:備份當前的yum源(為了防止出錯,方便還原)

$>cd /etc/yum.repos.d

$>mv centos-base.repo centos-base.repo.bak

$>wget 

執行完後,會在當前目錄下得到乙個centosos7-base-163.repo檔案

第三步:清理舊包

$>yum clean all

第四步:設定163源為預設yum源

$>mv centosos7-base-163.repo centos-base.repo

第五步:生成快取

$>yum makecache

centos7 修改yum源為阿里源

以下用到了wget,如果沒有安裝wget則需要進行先安裝 yum install wget centos7 修改yum源為阿里源,某下網路下速度比較快 首先是到yum源設定資料夾裡 1.安裝base reop源 cd etc yum.repos.d 接著備份舊的配置檔案 sudo mv centos...

CentOS7修改yum源為阿里源

映象源切換 1 先備份一下原來的源映象檔案 cp etc yum.repos.d centos base.repo etc yum.repos.d centos base.repo.backup wget o etc yum.repos.d centos base.repo 國內阿里的映象 3 yu...

CentOS 7修改yum源為阿里源

操作步驟 cd etc yum.repos.d 進入yum資料夾 mv centos base.repo centos base.repo.bak 備份原檔案 wget o etc yum.repos.d epel.repo 安裝epel repo源 yum clean all 清理快取 yum m...