centos 使用国内163 yum 源

前端之家收集整理的这篇文章主要介绍了centos 使用国内163 yum 源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
//设置163源
#wget http://mirrors.163.com/.help/CentOS6-Base-163.repo -O CentOS-Base.repo;
//设置epel源
#vim epel.repo ;
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://centos.ustc.edu.cn/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
baseurl=http://centos.ustc.edu.cn/epel/6/$basearch/debug
#mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
baseurl=http://centos.ustc.edu.cn/epel/6/SRPMS
#mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
//设置epel-testing源
#vim epel-testing.repo
[epel-testing]  
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch  
baseurl=http://centos.ustc.edu.cn/epel/testing/6/$basearch  
#mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=testing-epel6&arch=$basearch 
failovermethod=priority  
enabled=0  
gpgcheck=1  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6  

[epel-testing-debuginfo]  
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Debug  
baseurl=http://centos.ustc.edu.cn/epel/testing/6/$basearch/debug  
#mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=testing-debug-epel6&arch=$basearch 
failovermethod=priority  
enabled=0  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6  
gpgcheck=1  

[epel-testing-source]  
name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Source  
baseurl=http://centos.ustc.edu.cn/epel/testing/6/SRPMS  
#mirrorlist=https://mirrors.fedoraproject.org/Metalink?repo=testing-source-epel6&arch=$basearch 
failovermethod=priority  
enabled=0  
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6  
gpgcheck=1
//安装elep源的公钥
#wget http://centos.ustc.edu.cn/epel/RPM-GPG-KEY-EPEL-6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-EPEL-6;
#rpm --import /etc/pki/rpm-gpg/RPM*
//刷新查看
#yum clean all
#yum makecache
#yum repolist
原文链接:https://www.f2er.com/centos/377949.html

猜你在找的CentOS相关文章