网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

Centos如何安装163yum源

时间:2024-10-16 20:36:58

1、备份系统默认的yum源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

Centos如何安装163yum源

2、下载对应版本repo文件巳呀屋饔, 放入/etc/yum.repos.d/(操作前请做好相应备份)wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo

Centos如何安装163yum源Centos如何安装163yum源

3、也可以用另外一种方法下载curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base幻腾寂埒-163.repo也可以手动下载下来然后上传到/etc/yum.repos.d目录

Centos如何安装163yum源

4、运行以下命令生成缓存yum clean allyum makecache

Centos如何安装163yum源

5、检查下载的镜像文件/etc/yum.repos.d/CentOS-Base.repo,确认是163yum源的信息

Centos如何安装163yum源

6、使用163的yum源安装软件yum -y groupinstall "Ruby Support"观察下安装下载rpm包的时候速度有没有得到提升

Centos如何安装163yum源
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com