CentOS 5下使用yum安装mplayer
2009-10-30 12:54
621 查看
编译安装MPlayer好麻烦.其实centos也可以用yum安装 MPlayer.
(rhel也可用)
看一下centos 5的部分:
CentOS 5
首先确定你安装了ProtectBase
.
在CentOS 5里面这个插件默认启动 .
编辑/etc/yum.repos.d/CentOS-Base.repo ,
在 [base]
、[update]
、[centosplus]
段末加上一行:
让 [centosplus] 段失效如下:
编辑/etc/yum.repos.d/CentOS-Base.repo ,
在其它段的最后加上如下一行:
rpmforge
下载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
校验你下载的包
安全警告: rpmforge-release包把GPG keys注射到你的RPM数据库中. 只要你验证包和相信Dag,它应该是安全的.
安装包
这一步会加入yum仓库配置文件,注射合适的GPG keys.
用以下命令测试:
应该会有以下两行输出:
上面的数字可能不同, 但应该有几种包显示会排除在外.
如果是这样大概它可以运转了,试着你这样安装一些东西 :
[b]/etc/yum.repos.d/CentOS-Base.repo内容示范:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-5 - Base
baseurl=http://mirror.be10.com/centos/5/os/i386/
gpgcheck=1
protect=1
#released updates
[update]
name=CentOS-5 - Updates
baseurl=http://mirror.be10.com/centos/5/updates/i386/
gpgcheck=1
protect=1
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://mirror.be10.com/centos/5/addons/i386/
gpgcheck=1
protect=0
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://mirror.be10.com/centos/5/extras/i386/
gpgcheck=1
protect=0
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://mirror.be10.com/centos/5/centosplus/i386/
gpgcheck=1
enabled=0
protect=1
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
baseurl=http://mirror.be10.com/centos/5/contrib/i386/
gpgcheck=1
enabled=0
protect=0
#packages in testing
[testing]
name=CentOS-5 - Testing
baseurl=http://mirror.be10.com/centos/5/testing/i386/
gpgcheck=1
enabled=0
protect=0
ps:当然,要想播放rm/rmvb还需要将codecs和wincodecs解压到/usr/lib,就是把codecs解压到/usr/lib/codecd, wincodecd解压到/usr/lib/wincodecs。这点这里
有说
(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=0
rpmforge
下载rpmforge-release包.选择下面两个的其中一个, 依赖于你的机器.如果不能确定用哪一个用以下命令确定 uname -ii386 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 mplayer PS: 发现一个MPlayer的另一个前端SMPlayer也可以使用.没有编译好的RPM包.但是这个 SUSE的RPM包 可以用.
[b]/etc/yum.repos.d/CentOS-Base.repo内容示范:
[/b]
# CentOS-Base.repo#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-5 - Base
baseurl=http://mirror.be10.com/centos/5/os/i386/
gpgcheck=1
protect=1
#released updates
[update]
name=CentOS-5 - Updates
baseurl=http://mirror.be10.com/centos/5/updates/i386/
gpgcheck=1
protect=1
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://mirror.be10.com/centos/5/addons/i386/
gpgcheck=1
protect=0
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://mirror.be10.com/centos/5/extras/i386/
gpgcheck=1
protect=0
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://mirror.be10.com/centos/5/centosplus/i386/
gpgcheck=1
enabled=0
protect=1
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
baseurl=http://mirror.be10.com/centos/5/contrib/i386/
gpgcheck=1
enabled=0
protect=0
#packages in testing
[testing]
name=CentOS-5 - Testing
baseurl=http://mirror.be10.com/centos/5/testing/i386/
gpgcheck=1
enabled=0
protect=0
ps:当然,要想播放rm/rmvb还需要将codecs和wincodecs解压到/usr/lib,就是把codecs解压到/usr/lib/codecd, wincodecd解压到/usr/lib/wincodecs。这点这里
有说
相关文章推荐
- 在CentOS上安装Java环境:[1]使用yum安装java
- CentOS6.5使用yum命令方便快捷安装Nginx
- 使用YUM安装MySQL 5.5(适用于CentOS6.2/5.8及Fedora 17/16平台)
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS 使用yum命令安装出现错误提示:Loaded plugins: fastestmirror, refresh-packagekit, security
- CentOS5.5使用yum来安装LAMP
- 在cenOS下安装apache出现-bash: /etc/init.d/httpd: 没有那个文件或目录 我是在vmware上装的centos7,使用命令yum install httpd
- centos7下使用yum安装mysql
- CentOS中使用yum安装php环境
- CentOS 7.0下使用yum安装MySQL
- CentOS 7.0下使用yum安装MySQL
- CentOS7下使用yum安装Mongodb3.4
- CentOS7下使用yum安装Mongodb3.4
- CentOS7下使用yum安装Mongodb3.4
- centos7下使用yum安装mysql
- centos 使用yum安装nginx后如何添加模块
- 详解腾讯云CentOS7.0使用yum安装mysql及使用遇到的问题
- CentOS 7使用yum安装MySql5.6.24
- CentOS下使用yum安装配置和使用svn
- CentOS6.3文字界面下使用yum安装Gnome桌面