How to install EPEL in CentOS7/RHEL7

Source: Internet
Author: User
Tags centos epel repo


EPEL, short for Extra Packages for Enterprise Linux, is a set of high-quality additional software Packages for Enterprise Linux, including but not limited to Red Hat Enterprise Linux (RHEL ), centOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL ). (About: EPEL)

Install the EPEL repository (repo) for CentOS7/RHEL7)

Method 1: install commands


[Root @ idoseek ~] # Yum-y install epel-release
Loaded plug-in: fastestmirror
Loading mirror speeds from cached hostfile
* Base: mirrors.uniiedlayer.com
* Extras: mirrors.kernel.org
* Updates: mirrors.syringanetworks.net
Resolving dependency
--> Checking the transaction
---> The package epel-release.noarch.0.7-2 will be installed
--> Dependency resolved
 
Dependency solution
 
========================================================== ========================================================== ================================
Package architecture version source size
========================================================== ========================================================== ================================
Installing:
Epel-release noarch 7-2 extras 13 k
 
Transaction Summary
========================================================== ========================================================== ================================
Install package 1
 
Total Downloads: 13 k
Installation size: 22 KB
Downloading packages:
Epel-release-7-2.noarch.rpm | 13 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing: epel-release-7-2.noarch 1/1
In verification: epel-release-7-2.noarch 1/1
 
Installed:
Epel-release.noarch-2
 
Finished!
[Root @ idoseek ~] #

Method 2: manual installation

Select the appropriate type for the system architecture: http://dl.fedoraproject.org/pub/epel/7 /. The x86_64 we use will go to this directory to find the corresponding package. The installation method is as follows:


# Rpm-vih http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
Or:


# Wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
# Rpm-vih epel-release-7-2.noarch.rpm

Update package cache

In this case, we find that two epel repo files are added under/etc/yum. repos. d:


[Root @ idoseek ~] # Ll/etc/yum. repos. d/
Total usage 28
-Rw-r -- 1 root 1664 August 22 12:21 CentOS-Base.repo
-Rw-r -- 1 root 649 August 22 12:21 CentOS-Debuginfo.repo
-Rw-r -- 1 root 290 August 22 12:21 CentOS-fasttrack.repo
-Rw-r -- 1 root 1331 August 22 12:21 CentOS-Sources.repo
-Rw-r -- 1 root 156 August 22 12:21 CentOS-Vault.repo
-Rw-r -- 1 root 957 September 2 12:14 epel. repo
-Rw-r -- 1 root 1056 September 2 12:14 epel-testing.repo

Update metadata cache:

[Root @ idoseek ~] # Yum clean all & yum makecache

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.