天天看點

安裝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 ,如需轉載請自行聯系原作者

繼續閱讀