Centos 7 available Epel yum source

Source: Internet
Author: User
Tags gpg metalink

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:

1 Yum Makecache

Centos 7 available Epel yum source

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.