Configure the EPEL yum source and epelyum
When we use the yum installation package on linux, the following error is returned:
Loaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Setting up Install ProcessNothing to do
In this case, we need to install EPEL.
EPEL, Extra Packages for Enterprise Linux, is a software warehouse that has many frequently used software and is specially designed for RHEL. It is a good supplement to the RHEL standard yum source, it is completely free to use and maintained by the Fedora Project, so if you are using RHEL
Download and install EPEL from the official website
Download: (RHEL/CentOS 5 32-64 Bit)
Wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Installation:
Rpm-ivh epel-release-5-4.noarch.rpm
Configuration:
Create epel. repo under/etc/yum. repos. d/
[Epel-source] enabled = 0 is also changed to enabled = 1
enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL[epel-debuginfo]name=Extra Packages for Enterprise Linux 5 - $basearch - Debug#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debugmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearchfailovermethod=priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=1[epel-source]name=Extra Packages for Enterprise Linux 5 - $basearch - Source#baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMSmirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearchfailovermethod=priorityenabled=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPELgpgcheck=1
Uninstall EPEL:
[Root @ test ~] # Rpm-e epel-release