centos7 修改默认yum源为国内的阿里云
生活随笔
收集整理的這篇文章主要介紹了
centos7 修改默认yum源为国内的阿里云
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
# 安裝wget
yum -y install wget# 備份當前的yum源
mv /etc/yum.repos.d /etc/yum.repos.d.backup4comex# echo 新建空的yum源設置目錄
mkdir /etc/yum.repos.d# echo 下載阿里云的yum源配置
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo# 然后重建緩存:yum clean all
yum makecache# 查看系統可用的yum源
yum repolist enabled
總結
以上是生活随笔為你收集整理的centos7 修改默认yum源为国内的阿里云的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 迅雷下载Linux Oracle11gR
- 下一篇: Vue刷新当前页面几种方式