RepoForge(前身為 RPMForge)為 CentOS 提供了大量額外的實用套件。以下依步驟說明如何安裝並套用。
先查詢 CentOS 版本:
cat /etc/redhat-release
再查詢 CPU 架構:
uname -i
例如輸出:
CentOS release 6.2 (Final)x86_64
開啟 RepoForge User Guide 頁面後,會看到多個下載連結。原則上主版本的 EL 數字要與你的 CentOS 版本相符,例如 CentOS 6.2 就選擇 EL 6 的套件。
使用 rpm 的 -Uvh 參數直接安裝(升級)對應連結的套件:
rpm -Uvh https://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
接著 rpm 會自動下載、安裝並升級,之後即可用 yum 安裝各式套件。
yum install system-config-network-tuiyum install system-config-firewall-tuiyum install denyhostsyum install rdateyum install pvyum install sudo