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