CentOS 6.8yum源的配置


Centos配置163的yum源
1、首先备份当前系统的yum源
# mv /etc/yum.repo.d/Centos-Base.repo /etc/yum.repo.d/Centos-Base.repo.d.bak
2、在http://mirrors.centos.com/.html/下载相对应版本的repo文件,放入到/etc/yum.repo.d/
3、将CentOS6-Base-163.repo重命名为Centos-Base.repo
4、执行以下命令:
# yum clean all
# yum makecache
# yum update
2、在163源的基础上以pkgs.org配置第二yum源
# vim /etc/yum.repo.d/linuxtech.repo
[linuxtech] name=LinuxTECH baseurl=http://pkgrepo.linuxtech.net/el6/release/ enabled=1 gpgcheck=1 gpgkey= http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM