close
CentOS在套件管理上和Fedora相比
預設的repositories 只有放官方測試過的程式
有些好用的軟體都必須自己去抓source下來編譯安裝
所以我們可以新增一個第三方repositories 去擴充 yum 可用的套件
至於有那些repositories可用,
可參考CentOS 官方 wiki : http://wiki.centos.org/AdditionalResources/Repositories
以下介紹 rpmforge 的安裝方式
1. 先確認系統核心
# uname -i
x86_64
2. 下載對應核心版本 rpm forege
-
i386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
-
x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm <---- 我的是x86_64
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
3. 匯入DAG's GPG KEY
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
4. 驗證下載的rpm來源是否正確
# rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK
5. 安裝 rpmforge
# rpm -ivh rpmforge-release-0.5.2-2.el5.rf.*.rpm
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]
6. 測試yum reposititores 是否已加入 rpmforge
# yum clean all
隨便下指令安裝個什麼東西來看看是否已加入成功
# yum install htop
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror01.idc.hinet.net
* base: mirror01.idc.hinet.net
* extras: mirror01.idc.hinet.net
* rpmforge: fr2.rpmfind.net
* updates: mirror01.idc.hinet.net
addons | 951 B 00:00
addons/primary | 204 B 00:00
atrpms | 3.0 kB 00:00
atrpms/primary_db | 1.2 MB 00:02
base | 2.1 kB 00:00
base/primary_db | 2.2 MB 00:02
extras | 2.1 kB 00:00
extras/primary_db | 241 kB 00:00
rpmforge | 1.1 kB 00:00
rpmforge/primary | 2.2 MB 00:03
rpmforge 10480/10480
updates | 1.9 kB 00:00
updates/primary_db | 335 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package htop.x86_64 0:0.9-1.el5.rf set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
htop x86_64 0.9-1.el5.rf rpmforge 84 k
Transaction Summary
==========================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 84 k
Is this ok [y/N]:
這樣就完成囉!
全站熱搜
留言列表