RHEL/CentOS/Fedora Various Sources (EPEL, Remi, RPMForge, RPMFusion) Configuration

Keywords: RPM EPEL yum CentOS

CSDN GitHub
RHEL/CentOS/Fedora Various Sources (EPEL, Remi, RPMForge, RPMFusion) Configuration AderXCoding/system/tools/yum


This work adopts Knowledge Sharing Signature - Noncommercial Use - Sharing 4.0 International Licensing Agreement in the Same Way For permission and reprint, please indicate the source. Thank you for your cooperation.


This article addresses: http://blog.csdn.net/gatieme/article/details/71056309

CentOS defaults to having its own CentOS-Base.repo source, but the official source removes a lot of copyright controversial software, and the installed software is not the latest stable version.

Fedora's own source can not find many multimedia software, if you need to install, you must first add other sources, such as RPMFusion and RPMForge third-party software libraries.

Here we introduce various third-party software libraries. The following software libraries are suitable for RHEL-compatible linux distributions, such as CentOS, Fedora, Scientific Linux. Scientific Linux, which may be a little strange to everyone. It is similar to CentOS and is a clone of Red Hat linux.

1 EPEL source

EPEL, or Extra Packages for Enterprise Linux, is a project created and maintained by the Fedora community to provide high-quality packages for RHEL and derivative distributions such as CentOS and Scientific Linux.

EPEL contains a lot of software, which is a good complement to the official standard source.

"EPEL (Extra Packages for Enterprise Linux ) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL)."

Please download the package for different versions.

For example, CentOS7 adds an EPEL source for Aliyun

yum localinstall --nogpgcheck http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

perhaps

rpm -vih http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

perhaps

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

rpm -vih epel-release-7-2.noarch.rpm

2 Remi source

Remi Sources may be rarely heard of, but we strongly recommend them, especially for users who do not want to compile the latest version of linux, because the software in Remi Sources is almost the latest stable version.

Maybe you doubt stability?

Rest assured, these are all compiled and put into the source of Linux ashes players, their familiarity with the system environment and software compilation parameters is beyond doubt.

Remi Download Address: http://rpms.famillecollet.com/

You also need to download different versions.

For example, CentOS 7 adds official Emi sources

yum localinstall --nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

perhaps

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

perhaps

wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

rpm -ivh remi-release-7.rp

3 RPMForge source

RPMForge is a software warehouse under the CentOS system. It has more than 4000 software packages. It is considered as the safest and most stable software warehouse by the CentOS community.

RPMForge official website: http://repoforge.org/

Github : https://github.com/repoforge

RPMForge Download Address http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/

For example, CentOS 6.5 adds an official RPM Forge source

yum localinstall --nogpgcheck http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

CentOS 7.0 Adding the Official RPM Forge Source

yum localinstall --nogpgcheckhttp://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

perhaps

rpm -ivh http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

perhaps

wget http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

4 RPMFusion source

If you are using Fedora 15 now, you must be familiar with RPMFusion. Various audio software such as MPlayer is not available in the standard source. Generally, RPMFusion source is installed first, and then you can easily install all kinds of software you need.

CentOS officials say that the stability of the software in the RPMFusion library is not as good as that in rpmforge.

RPMFusion official website: http://rpmfusion.org/

Package download http://download1.rpmfusion.org

Including two packages, free and non_free

Note: You need to install epel-release before installing RPMFusion source

#FREE
yum localinstall http://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

#NON_FREE
yum localinstall http://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

perhaps

#FREE
rpm -ivh http://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

#NONFREE
rpm -ivh http://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

perhaps

#FREE
wget http://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
rpm -ivh rpmfusion-free-release-7.noarch.rpm


#NON_FREE
wget http://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
rpm -ivh rpmfusion-nonfree-release-7.noarch.rpm

For other versions, please see: http://rpmfusion.org/Configuration

5 Adding Priorities for Various Sources

The above sources are fully compatible with systems such as entOS, but there is no guarantee of full compatibility and no conflict among software libraries.

5.1 Install the yum-priorities plug-in

If you need to use the above source, you need to install the yum-priorities plug-in

yum install yum-plugin-priorities

View configuration information after installation

vim /etc/yum/pluginconf.d/priorities.conf
enabled = 1(Available)/0(Unavailable)

5.2 Setting the Priority of Sources

After installing the yum-priorities plug-in, you can set priority for each source.

Generally set the official standard source priority to 1, the highest, third-party recommendation > 10

Edit the *. repo file in / etc/yum.repos.d / directory to set priorities.

The parameters are:

priority=N   # The value of N is 1-99

The lower the number, the higher the priority, the higher the number, the lower the priority. The installation package chooses the higher priority to start the installation.

The recommended settings are:

[base], [addons], [updates], [extras] … priority=1 

[centosplus],[contrib] … priority=2

Third Party Repos such as rpmforge … priority=N   (where N is > 10 and based on your preference)

5.3 Conflict Resolution

Special case: But when all sources with different priorities contain the same package, its behavior may not be what we need.

For example, there is a package in the base source: abc-2.2.0.x86_64.rpm, base is the highest priority. There are many ABC packages in other priorities, if you want to install abc-2.1.0-x86_64.rpm, by command.

yum install abc-2.1.0

The following prompt will appear

xx packages excluded due to repository priority protections

And you can't find the packages you need because the packages in the high priority source shield the packages in other low priority sources, so you can't install the packages you need from the low priority source.

Modifying the configuration file for priorities is / etc/yum/pluginconf.d/priorities.conf

Its contents are as follows:

[main]

enabled=0   # 0 Disables 1 Enables

The default is 1; set enabled = 0 so that priorities plug-ins can be disabled. This enables the installation of packages on any source.

6 References

RHEL/CentOS/Fedora Various Sources (EPEL, Remi, RPMForge, RPMFusion) Configuration

Priority of yum source

Modifying priority priority of yum source in centos 7.0


This work adopts Knowledge Sharing Signature - Noncommercial Use - Sharing 4.0 International Licensing Agreement in the Same Way For permission and reprint, please indicate the source. Thank you for your cooperation.

Posted by twopeak on Tue, 18 Dec 2018 15:33:04 -0800