Red Hat Reds add Yum Epel source

Source: Internet
Author: User
Tags gpg yum repolist metalink



What is an enterprise Linux add-on package (EPEL)?



The Enterprise Linux add-on package (hereinafter referred to as EPEL) is a special interest group created, maintained, and managed for Red Hat Enterprise Linux (RHEL) and its derivative distributions (such as CentOS, Scientific Linux, Oracle Enterprise Linux) is a high-quality add-on package project.



EPEL packages typically do not conflict with packages in the official Linux source, or replace files with each other. The EPEL project is basically consistent with Fedora and includes a complete build system, upgrade manager, Image Manager, and more.



How do I get the EPEL software package?



The EPEL contains a package called ' Epel-release ' that contains the GPG key and source information for the EPEL source. You can install it to your enterprise Linux distribution via Yum. In addition to the epel-release source, there is a source called ' epel-testing ', which contains the latest test package, its version is new but the installation is risky, please do it yourself.



In order to make a Epel source, learned a called program lock East, the following will be explained



Build Epel source as follows:


    1. The system I'm using is Red Hat 6.

    2. I'll start with Rpm-qa | grep Epel to see if a Epel RPM package is installed.


I didn't pretend at first, so I wget a



wget http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm



or Http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F here to download



3. Installing epel-release-6-8.noarch.rpm


[[email protected] mnt]# rpm -ivh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
        package epel-release-6-8.noarch is already installed
[[email protected] mnt]#


Because I installed it before.



4. After installation we will see two configuration files in/etc/yum.repos.d/, Epel.repo and Epel-testing.repo



Rhel-source.repo.bak This file is the local yum I did before I backed up the next


[Email protected] mnt]# Ls/etc/yum.repos.d/epel.repo Epel-testing.repo Rhel-source.repo.bak


5. It's basically over here.



In the Epel.repo configuration file, the default address is mirrorlist=, but we want to use baseurl=, all we have to manually change, we yum repolist see 650) this.width=650; "Title=" QQ picture 20150729223406.jpg "alt=" wkiol1w45tig_v_vaamvojot-gc369.jpg "src=" http://s3.51cto.com/wyfs02/M00/70/7F/ Wkiol1w45tig_v_vaamvojot-gc369.jpg "/>



This mistake, I was engaged for a long while did not get out, the results asked the next Daniel to remove/var/run/yun.pid, the reason is the above I mentioned the program lock, another program locked the Yum waiting to quit, the result I deleted really still good



Here is the configuration file content of my Epel.repo


[[email protected] mnt]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/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://download.fedoraproject.org/pub/epel/6/$basearch/debug
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=1
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://download.fedoraproject.org/pub/epel/6/SRPMS
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[[email protected] mnt]#


Next we continue with Yum Repolist


[[email protected] mnt]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id         repo name                                                 status
epel            Extra Packages for Enterprise Linux 6 - x86_64            11,742
epel-debuginfo  Extra Packages for Enterprise Linux 6 - x86_64 - Debug     2,212
epel-source     Extra Packages for Enterprise Linux 6 - x86_64 - Source        0
repolist: 13,954
[[email protected] mnt]#
OK





Note: If there is no place please inform, in order to facilitate timely correction of errors!!!



This article is from a "self-made" blog, be sure to keep this source http://baishouqijia.blog.51cto.com/2580498/1679829



Red Hat Reds add Yum Epel 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.