How to install epel source to RHEL/centos 7/6/5

Source: Internet
Author: User
Tags yum repolist



Run the wget command to download and install the RPM file.


RHEL/centos 7 64 bit
 



 
## RHEL/CentOS 7 64-Bit ##
# wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
# rpm -ivh epel-release-7-0.2.noarch.rpm
RHEL/centos 6 32-64 bit
 



 
 
## RHEL/CentOS 6 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm

## RHEL/CentOS 6 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
RHEL/centos 5 32-64 bit
 
## RHEL/CentOS 5 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm

## RHEL/CentOS 5 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ivh epel-release-5-4.noarch.rpm
RHEL/centos 4 32-64 bit
 



 
## RHEL/CentOS 4 32-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/i386/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm

## RHEL/CentOS 4 64-Bit ##
# wget http://download.fedoraproject.org/pub/epel/4/x86_64/epel-release-4-10.noarch.rpm
# rpm -ivh epel-release-4-10.noarch.rpm
How can I check whether epel is successfully installed?


Run the following command:


 



# Yum repolist
Output:
[[email protected] ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.yun-idc.com
 * epel: ftp.sjtu.edu.cn
 * extras: mirrors.yun-idc.com
 * updates: mirrors.yun-idc.com
repo id                        repo name                                                     status
base/7/x86_64                  CentOS-7 - Base                                               8,465
epel/x86_64                    Extra Packages for Enterprise Linux 7 - x86_64                5,036
extras/7/x86_64                CentOS-7 - Extras                                                30
updates/7/x86_64               CentOS-7 - Updates                                              423
repolist: 13,954
[[email protected] ~]# 
How to install software using the epel source?


For example, to view cacti Information


 



# Yum -- enablerepo = epel info cacti
Run the following command for installation:
 



# Yum -- enablerepo = epel install cacti


Note: The epel configuration file is in/Etc/yum. Repos. d/epel. Repo.


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.