RHEL (RedHat) 6.3 use EPELYum Source

Source: Internet
Author: User
Tags yum repolist metalink
Because RHEL (RedHat) 6.3 needs to install flow-tools, you need to set the epel source. The method is as follows: 32-bit System Selection: rpm-ivhhttp: // configure

Because RHEL (RedHat) 6.3 needs to install flow-tools, you need to set the epel source. The method is as follows:

32-bit System Selection:
Rpm-ivh http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
64-bit System Selection:
Rpm-ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Import key:
Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Configure epel yum source http://www.linuxidc.com/Linux/2012-10/71850.htm

Execute commands in rhel:

# Yum repolist

Error:

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Solution Process:

It took a long time. But it also deepens its understanding of yum.

After the epel-release-6-8.noarch.rpm is installed, two files are added under the/etc/yum. repos. d directory:

Epel. repo // This is the standard epel source, tested and relatively stable

Epel-testing.repo // This is the latest and is being tested.

By default, yum searches for all files in the/etc/yum. repos. d directory and searches for the yum source. The premise for searching is enable = 1. If enable = 0, the source will not be searched.

After comparison, we found that the epel in the above error indicates that the problem was found in epel. repo.

Open epel. repo and find that only the first [epel] is enable = 1. The other values are 0, indicating that this is a problem. But where is the problem?

Manually access the source address https://mirrors.fedoraproject.org/metalink in ie? Repo = epel-6 & arch = $ basearch. No problem found.

It's time to get stuck. I found a lot of information online. The configuration cannot be adjusted according to various methods. During this period, I also explored the configuration myself. I remember that the configuration was correct, but I don't know why it didn't work. Later, someone modified the settings as follows:

# Baseurl = http://download.fedoraproject.org/pub/epel/6/?basearch

Using list = https://mirrors.fedoraproject.org/metalink? Epel-6 & arch = $ basearch

To:

Baseurl = http://download.fedoraproject.org/pub/epel/6/?basearch

# Items list = https://mirrors.fedoraproject.org/metalink? Epel-6 & arch = $ basearch

Test with commands:

# Yum repolist

Loaded plugins: product-id, subcomponent-manager

Updating certificate-based repositories.

Unable to read consumer identity

Epel | 4.4 kB: 00

Epel/primary_db | 6.3 MB

Repo id repo name status

HA Local Sources 53

LoadBalancer Local Sources 2

ResilientStorage Local Sources 59

Base Server Local Sources 3,585

Epel Extra Packages for Enterprise Linux 6-x86_64 11,128

Repolist: 14,827

You can see that the system is successfully connected to the epel source.

RedHat 6.2 Linux modify yum source free use CentOS source http://www.linuxidc.com/Linux/2013-07/87383.htm

Configure epel yum source http://www.linuxidc.com/Linux/2012-10/71850.htm

Redhat local yum source configuration http://www.linuxidc.com/Linux/2012-11/75127.htm

Yum profile description http://www.linuxidc.com/Linux/2013-04/83298.htm

Install yum http://www.linuxidc.com/Linux/2013-06/86535.htm in RedHat 6.1

YUM installation and cleaning http://www.linuxidc.com/Linux/2013-07/87163.htm

Build yum local ground source http://www.linuxidc.com/Linux/2014-07/104533.htm on CentOS 6.4

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-10/108481.htm

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.