如何替换linux的yum源

 时间:2024-10-15 06:09:35

1、从镜像站点里面选中自己的linux版本

2、备份自身的yum源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

3、下载新的CentOS-Base.repo 到/etc/yum.repos.d/CentOS 5wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repoCentOS 7wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

4、之后运行yum makecache生成缓存

5、操作完以上步骤即完成了yum源的替换

  • C#开发程序无法修改系统时间解决办法
  • Windows Server2008如何安装IIS和FTP
  • Thinkphp的环境部署
  • Windows7上开启ftp服务器功能
  • vsftpd文件传输系统安装及配置
  • 热门搜索
    云南农业大学怎么样 左肩膀疼是怎么回事 去脚臭最有效的方法 寒冷性荨麻疹的治疗方法 炸蘑菇怎么做好吃 慢性支气管炎的症状和治疗方法 痤疮最佳治疗方法 怎么建立网站 一直干咳怎么办 婚房布置图片大全