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 enable ELRepo Warehouse in Enterprise Linux

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

Share

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

This article to share with you is about how to enable ELRepo repository in Enterprise Linux, Xiaobian think it is very practical, so share it with you to learn, I hope you can gain something after reading this article, not much to say, follow Xiaobian to see it.

If you're using an Enterprise Linux distribution (Red Hat Enterprise Linux or its derivatives, such as CentOS or Scientific Linux) and need support for specific or new hardware, you've come to the right place.

Enabling ELRepo in Enterprise Linux

Although ELRepo is a third-party repository, it has an active community on Freenode(#elrepo) and good support for user mailing lists.

If you are still concerned about adding a separate repository to the software source, please note that CentOS has listed it as reliable on its wiki(see here). If you still have doubts, feel free to ask in the comments!

Note that ELRepo not only provides support for Enterprise Linux 7, but also previous versions. This may not seem like a big deal considering CentOS 5 ends support (EOL) at the end of this month (March 2017), but keep in mind that CentOS 6's EOL won't be earlier than March 2020.

No matter what version of EL you are using, you need to import the GPG key first when you actually enable it:

# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Enable ELRepo in EL5:

# rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm

Enable ELRepo in EL6:

# rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

Enable ELRepo in EL7:

# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

This article will cover only EL7, sharing a few examples in the following sections.

Understanding ELRepo Channel

To better organize the software in the repository, ELRepo is divided into four separate channels:

elrepo is the main channel and is enabled by default. It does not contain packages from the official release.

elrepo-extras contains packages that can be substituted for distributions. Not enabled by default. To avoid confusion, when packages need to be installed or updated from this repository, you can temporarily enable this channel (replacing the package with the actual package name) by # yum --enablerepo=elrepo-extras install package

elrepo-testing provides packages that will be placed in the main channel, but are still under test.

elrepo-kernels provide long-term and stable mainline kernels that have been specifically configured for EL.

Both elrepo-testing and elrepo-kernel are disabled by default, but if we need to install or update packages from them, we can enable them like elrepo-extras.

To list the packages available in each channel, run one of the following commands:

# yum --disablerepo="*" --enablerepo="elrepo" list available # yum --disablerepo="*" --enablerepo="elrepo-extras" list available # yum --disablerepo="*" --enablerepo="elrepo-testing" list available # yum --disablerepo="*" --enablerepo="elrepo-kernel" list available

The following pictures illustrate *** examples:

List the packages available for ELRepo

The above is how to enable ELRepo repository in Enterprise Linux, Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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