Because CentOS 7 differs greatly from the old version
So a variety of packages can not be used in the old version, so if you use the old version of the extended Yum source
Will cause Yum to have a serious error and cannot install a large number of packages
But the Epel source already supports CentOS 7, just add it
Modify Yum Source
1. Run the following command to edit the Yum Source:
1 |
VI /etc/yumrepos. D/Epel. Repo |
2. Press I to enter edit mode and paste the following code:
1234567891011121314151617181920212223242526 |
[Epel] name=extra Packages for enterprise Linux 7 - $basearch #baseurl=http://download fedoraproject. Org/pub/epel/7/$ basearch mirrorlist=HTTPS://mirrors. Fedoraproject. Org/metalink? Repo=Epel-7&arch=$basearch Failovermethod= Priorityenabled=1 Gpgcheck=0 Gpgkey=file:///etc/PKI/rpm-gpg/rpm -GPG-KEY-EPEL-7 [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $ Basearch - Debug #baseurl=http://download fedoraproject. Org/pub/epel/7/$ basearch/debug mirrorlist=HTTPS://mirrors. Fedoraproject. Org/metalink? Repo=epel-Debug-7&arch=$basearch Failovermethod= Priorityenabled=0 Gpgkey=file:///etc/PKI/rpm-gpg/rpm -GPG-KEY-EPEL-7 Gpgcheck=1 [Epel-source] name=Extra Packages for Enterprise Linux 7 - $ Basearch - Source #baseurl=http://download fedoraproject. Org/pub/epel/7/SRPMS mirrorlist=HTTPS://mirrors. Fedoraproject. Org/metalink? Repo=Epel-Source-7&arch=$basearch Failovermethod= Priorityenabled=0 Gpgkey=file:///etc/PKI/rpm-gpg/rpm -GPG-KEY-EPEL-7 Gpgcheck=1 |
3.: Wq Save exit
Update Yum Cache
Run the following command:
Centos 7 available Epel yum source