天天看点

安装epel源How to subscribe a system to a child channel using Red Hat Network (RHN) Classic ?

首先,我们弄清楚什么是epel源:

epel(Extra Packages for Enterprise Linux)是一个软件源,里面包含了许多基本源中不存在的软件。

它由Fedora Project 推出。

<a href="http://fedoraproject.org/wiki/EPEL" target="_blank"></a>

EPEL packages are usually based on their Fedora counterparts and will never conflict with or replace packages in the base Enterprise Linux distributions. EPEL uses much of the same infrastructure as Fedora, including buildsystem, bugzilla instance, updates manager, mirror manager and more.EPEL包基于Fedora副本并且不会与基础的企业版linux包冲突或者是替换

注意点:

对于centos用户:

You can install EPEL by running yum install epel-release. The package is included in the CentOS Extras repository, enabled by default.

对于RHN(red hat network)用户:

红帽提供3个网络模块功能:

更新:方便地对您的系统进行软件更新。

管理:增强管理能力并提高您的 Linux 实施的可扩展性。

Provisioning:系统快照、集成的 kickstarts、配置管理以及更多功能。

<a href="https://access.redhat.com/solutions/11312" target="_blank">https://access.redhat.com/solutions/11312</a>

查看系统安装了哪些repo使用如下命令:

yum repolist 

2. 安装过程:

下载安装了epel-release后,安装其他包报错:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

然后,我注释掉了这行:

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&amp;arch=$basearch

修改了repo配置文件后,需要执行以下步骤:

[root@localhost yum.repos.d]# yum clean all

然后检查:

[root@localhost yum.repos.d]# yum list

之后又报错:

Error: xz compression not available

经过一番查询:是由于我的系统版本是6.8,但是安装了epel-release-7-8.noarch,

因此,我需要先卸载安装包,然后清理缓存:

'

本文转自chenzudao51CTO博客,原文链接:http://blog.51cto.com/victor2016/1882150 ,如需转载请自行联系原作者

继续阅读