CentOS7更新YUM源
2018-01-22 16:49
369 查看
通过脚本更新YUM源
手动更新YUM源
依次执行上面脚本shell命令即可
#!/usr/bin/env bash # the first is backup original yum folder to the .bak sudo mv /etc/yum.repos.d/ /etc/yum.repos.d.bak # new make directory of the `/etc/yum.repos.d/` sudo mkdir /etc/yum.repos.d/ # download the aliyun yum resource sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo # clean cache of the old yum resource sudo yum clean all # reestablishment yum resource sudo yum makecache
手动更新YUM源
依次执行上面脚本shell命令即可
相关文章推荐
- Centos7配置更新国内yum源
- centos7更新yum源
- Centos7更新阿里云yum源
- Centos7更改yum源与更新系统
- centos7更改yum源为网易源与更新系统
- CentOS7更改yum源与更新系统
- centos7 更新yum源 到 163
- CentOS7如何利用本地光盘制作yum源
- 更新yum源对应的配置文件
- centos-6更新yum源(163)
- redhat更新yum源进行软件在线安装
- CentOS更改yum源与更新系统
- centos7 修改yum源为阿里源
- CentOS7的yum源中默认好像是没有mysql的
- centos7配置阿里云yum源
- 在CentOS7上安装本地yum源
- CentOS7 yum源 快速转 阿里云
- CentOS7创建本地yum源
- CentOS7.2更改yum源与更新系统
- centos更新yum源