CentOS官方源里的电影播放器是根本就用不了的。所以这里我们要利用第三方源来安装。
加入RPMforge源:
sudo rpm -Uhv http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
编辑/etc/yum.repos.d/rpmforge.repo文件,
将其中的enabled项的值设成1表示启用源:
sudo vim /etc/yum.repos.d/rpmforge.repo
[rpmforge] name = Red Hat Enterprise $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1
安装电影播放器:
sudo yum install mplayer kmplayer
默认mplayer包已经包含了很全的解码器,几乎能播放任何格式的视频了!