Centos如何安装163yum源

2025-07-13 04:25:35

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源
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢