Method of using EPEL source in CentOS system

Time:2021-1-19

It seems that there are not many domestic Yum sources, especially Netease. Although the speed is fast, it is not complete. Many things are not available, even IPython. Every time you install and write software, you have to go to WGet package by yourself. You can’t save snacks, so you can directly replace it with a third-party source, which is more comprehensive, namely EPEL.

Introduction to EPEL (official website: https://fedoraproject.org/wiki/EPEL )

Extra packages for Enterprise Linux (or EPEL) is a project created, maintained and managed by Fedora network community to provide high-quality additional software packages for Enterprise Linux. Not limited to Red Hat Enterprise Linux (RHEL), CentOS and scientific Linux (SL)

EPEL package is a fedora based project, and will not conflict with the official Enterprise Linux distribution package or replace the file.

EPEL uses the same infrastructure as fedora. Including building system, upgrade manager, image management and so on. After installing the EPEL source, you can directly use Yum to install the software, and EPE:L It doesn’t replace the original source and saves a lot of trouble.

Installing the EPEL source

EPEL contains a package called EPEL release, which contains the GPG key and software source information of the EPEL source. You can install it to your Enterprise Linux distribution through yum. In addition to the EPEL release source, there is also a source called EPEL testing. This source contains the latest testing software package. Its version is very new, but the installation is risky. Please consider for yourself.
Note: some third-party software sources need EPEL’s’ EPEL testing ‘source to install dependent components. Be sure to enable this source in system settings. — quoted from “CentOS 6.2 installation of third party software library EPEL”

This is RedHat 5. X

For 32-bit systems, i386 is used

Copy code

The code is as follows:

#rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-x.noarch.rpm

For 64 bit systems, x86 is used_ sixty-four

Copy code

The code is as follows:

#rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-x.noarch.rpm

(Note: epel-release-x-x noarch.rpm Where x-x represents the latest version of EPEL, because only the latest version of EPEL is retained. Therefore, if you are CentOS 6. X version, you can also directly install epel-release-6-x noarch.rpm )。 This principle is also useful for CentOS 5. X

Copy code

The code is as follows:

#RPM – Q EPEL release / / query whether the installation of EPEL is successful

Import key command:

Copy code

The code is as follows:

#rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5</p>

Modify the configuration file of Yum and the priority of EPEL:

Copy code

The code is as follows:

#vi /etc/yum.repos.d/epel.repo

The value of prority is modified according to your own situation.

To suspend the use of EPEL:

Copy code

The code is as follows:

#vim /etc/yum.repos.d/epel.repo

Change enabled = 1 to enabled = 0.

Recommended Today

Practice of query operation of database table (Experiment 3)

Following the previous two experiments, this experiment is to master the use of select statements for various query operations: single table query, multi table connection and query, nested query, set query, to consolidate the database query operation.Now follow Xiaobian to practice together!Based on the data table (student, course, SC, teacher, TC) created and inserted in […]