Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install EPEL package Manager and add EPEL Source in CentOS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to install the EPEL package manager in CentOS and add the EPEL source". In the daily operation, I believe that many people have doubts about how to install the EPEL package manager in the CentOS and add the EPEL source. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to install the Epel package manager in the CentOS and add the EPEL source". Next, please follow the editor to study!

Install EPEL on CentOS

To install EPEL, we first need to download EPEL's rpm installation package.

The download pages for versions 6.x and 5.x under CentOS/RHEL are as follows:

Http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.html

Http://download.fedoraproject.org/pub/epel/5/i386/repoview/epel-release.html

The above URL may be redirected to a specific mirror site to speed up the download speed. This page contains download links that can be accessed directly to the rpm package. The direct download link is as follows:

Http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Choose the correct download address according to your CentOS version.

Note that the installation package for EPEL is compiled independently, so it can be installed on 32-bit and 64-bit systems.

1. Confirm the version of your CentOS

First confirm your CentOS version with the following command

The code is as follows:

$cat / etc/redhat-release

CentOS release 6.4 (Final)

two。 Download the rpm installation package for EPEL

Now download the EPEL version corresponding to the CentOS version from the address above

The code is as follows:

$wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

3. Install EPEL

Install the EPEL package with the following command

The code is as follows:

$sudo rpm-ivh epel-release-6-8.noarch.rpm

Or

The code is as follows:

$sudo rpm-ivh epel-release*

4. Check the EPEL source

After installing the EPEL source, use the yum command to check if it is added to the source list

The code is as follows:

# yum repolist

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.vonline.vn

* epel: buaya.klas.or.id

* extras: centos-hn.viettelidc.com.vn

* updates: mirrors.fibo.vn

Repo id repo name status

Base CentOS-6-Base 6381

Epel Extra Packages for Enterprise Linux 6-x86 million 64 10023

Extras CentOS-6-Extras 13

Nginx nginx repo 47

Updates CentOS-6-Updates 1555

Repolist: 18019

EPEL is listed after repo and shows that tens of thousands of packages are available, so EPEL has been installed on your CentOS.

The configuration of the EPEL source is installed to the / etc/yum.repos.d/epel.repo file.

Now try to get the package from EPEL

The code is as follows:

$sudo yum install htop

Add EPEL Feed

The code is as follows:

Rpm-Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

And then

The code is as follows:

Rpm- import / etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

This step can be done or not (because when installing software with yum, select y according to the prompt to import automatically)

Then modify the / etc/yum.repos.d/epel.repo file and add an attribute priority=11 at the end of [epel]

It means that yum first went to the official source to check, but the official did not go to the source of epel.

At this point, the study on "how to install the EPEL package manager in CentOS and add EPEL source" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report