CentOS 5安装mplayer
編譯安裝MPlayer好麻煩.其實centos也可以用yum安裝 MPlayer. (rhel也可用)
看一下centos 5的部分:
CentOS 5
首先確定你安裝了ProtectBase .
Protectbase
yum-protectbase在CentOS 5包倉庫里面有提供:
#yum install yum-protectbase在CentOS 5里面這個插件默認啟動 .
編輯/etc/yum.repos.d/CentOS-Base.repo , 在 [base] 、[update] 、[centosplus] 段末加上一行:
protect=1讓 [centosplus] 段失效如下:
enabled=0編輯/etc/yum.repos.d/CentOS-Base.repo , 在其它段的最后加上如下一行:
protect=0rpmforge
下載rpmforge-release包.選擇下面兩個的其中一個, 依賴于你的機器.如果不能確定用哪一個用以下命令確定 uname -i
-
i386 http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
-
x86_64 http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
(你可以在 http://dag.wieers.com/packages/rpmforge-release/ 找到rpmforge-release包的完全列表,但是推薦使用上面列出兩個中的一個).
安裝DAG's GPG key
#rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt校驗你下載的包
#rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm安全警告: rpmforge-release包把GPG keys注射到你的RPM數據庫中. 只要你驗證包和相信Dag,它應該是安全的.
安裝包
#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm這一步會加入yum倉庫配置文件,注射合適的GPG keys.
用以下命令測試:
#yum check-update應該會有以下兩行輸出:
Loading "protectbase" plugin...
76 packages excluded due to repository protections
上面的數字可能不同, 但應該有幾種包顯示會排除在外.
如果是這樣大概它可以運轉了,試著你這樣安裝一些東西 :
#yum install mplayerhttp://blog.chinaunix.net/u2/67279/showart_585663.html
總結
以上是生活随笔為你收集整理的CentOS 5安装mplayer的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ae/Pr画面破损信号干扰插件包TV D
- 下一篇: 尤其适合程序员使用的TextMate f