腾讯云更改yum源

腾讯云的yum安装源mirrors.tencentyun.com,无法下载程序包,这里替换成阿里云的mirrors

[1] 首先备份/etc/yum.repos.d/base.repo

mv /etc/yum.repos.d/base.repo /etc/yum.repos.d/base.backup

[2] 进入yum源配置文件所在文件夹

[root@localhost yum.repos.d]# cd /etc/yum.repos.d/

[3] 下载阿里云的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)

[root@localhost yum.repos.d]# wget http://www.fzzsh.com/downloads/CentOS-Base.repo

[4] 运行yum makecache生成缓存

[root@localhost yum.repos.d]# yum makecache

[5] 更新系统

[root@localhost yum.repos.d]# yum -y update

[6] 安装lrzsl

[root@localhost ~]# yum -y install lrzsz

还没有评论,快来抢沙发!

发表评论

  • 😉
  • 😐
  • 😡
  • 😈
  • 🙂
  • 😯
  • 🙁
  • 🙄
  • 😛
  • 😳
  • 😮
  • emoji-mrgree
  • 😆
  • 💡
  • 😀
  • 👿
  • 😥
  • 😎
  • ➡
  • 😕
  • ❓
  • ❗
  • 66 queries in 0.415 seconds