Linux CentOS yum 更换源
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
Reference: blog.csdn.net/weixin_53502673/article/details/124869083
1、yum源进行备份
进入到yum源的配置文件中
执行命令如下:cd /etc/yum.repos.d
将yum源进行备份:mv Centos-Base.repo Centos-Base.repo.bak
2、获取阿里的yum源配置文件
执行命令:wget -O Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、对yum源生成缓存
执行命令:yum makecache
4、更新yum源
执行命令:yum -y install update
执行完成之后就可以使用yum源了,到此yum源就更换成功了。




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)