Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

CentOS 5/6 安裝 EPEL 擴充軟體倉庫:下載對應版本 rpm 並驗證 repo 列表

編輯:關於 Linux

EPEL (Extra Packages for Enterprise Linux) 由 Fedora 團隊維護,提供 RHEL/CentOS 缺失的上萬個額外套件 (如 htop) 且不衝突基礎套件。本文教學:確認 CentOS 版本 (cat /etc/RedHat-release) → 下載對應 epel-release rpm (5.x/6.x 不同網址) → rpm -ivh 安裝 → yum repolist 驗證 epel 出現並顯示套件數 → yum install htop 測試安裝。注意:EPEL 與 RPMForge 可能衝突,建議單一第三方源。

下載網址對照

  • CentOS 6: https://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  • CentOS 5: https://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

安裝驗證

wget [對應網址]
sudo rpm -ivh epel-release-*.rpm
yum repolist
# 應顯示 epel Extra Packages for Enterprise Linux 6 - x86_64  10,023

EPEL 套件基於 Fedora 重建,穩定可靠,是 CentOS 使用者擴充軟體庫的首選來源。

Copyright © Windows教程網 All Rights Reserved