//set 163 source #wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo-O Centos-base.repo;
//set Epel source #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-$basear Ch-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
Set epel-testing source #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 Enterpri Se Linux 6-testing-$basearch-source Baseurl=http://centos.ustc.edu.cn/epel/testing/6/srpms #mirrorlist =https://m Irrors.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
Install the public key of the Elep source
#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*
Refresh View
#yum
#yum makecache
#yum repolist