CentOS 5.3 Linux 用yum 安装mplayer


第一步、到/etc/yum.repos.d/目录下,新建一个文件mplayer.repo,写入如下内容:
[mplayer]
name=CentOS-$releasever - Updates
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
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

第二步、执行
[root@zhuliting ~]# yum install mplayer

安装成功后,建议把mplayer.repo文件删除。

 

[note]
gpgcheck=1时,安装过程中会出现如下提示,并且安装不成功。
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for lirc-0.6.6-4.el5.rf.i386.rpm is not installed

你可能感兴趣的:(linux,centos,File,header)