123
分类:
2012-12-25 11:00:12
原文地址:rhel 安装5.5yum包 并安装mplayer 作者:suliu
使用环境为rhel5。5
1 、rpm -qa|grep yum 可以查看已经安装过的yum包
2 、删除 yum包
rpm -qa|grep yum|xargs rpm -e --nodeps
3、在 重新下载yum包。
wget
wget
wget
wget
rpm -Uvh python-iniparse-0.2.3-4.el5.noarch.rpm yum-3.2.22-33.el5.centos.noarch.rpm yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm
4 、在/etc/yum.repos.d/下生成CentOS-Base.repo文件
[base]
name=CentOS-5.7 - Base
baseurl=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-5.7 - Updates
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
[addons]
name=CentOS-5.7 - Addons
baseurl=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-5.7 - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5.7 - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
至此yum可以使用了,yum update
5 、安装视频解码的yum源包
导入key文件
rpm --import
yum update
6 、安装mplayer程序
yum -y install libdvdcss libdvdread libdvdplay libdvdnav lsdvd mplayerplug-in mplayer mplayer-gui compat-libstdc++-33 flash-plugin gstreamer-plugins-bad gstreamer-plugins-ugly
或者下面的
yum install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd libquicktime
yum install flash-plugin mplayerplug-in mplayer mplayer-gui gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly
7 、安装解码包
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm ; rpm -ivh mplayer-codecs-20061022-1.i386.rpm
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm; rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm
现在应该可以播放rmvb文件了,可是只有声音没有图像,郁闷呀,
无意yum install *mplayer yum install mplayer *
结果安装了smplayer和qt4,终于可以放rmvb了,有图像了,可能是qt没装 的原因。
8 、中文字体显示不对劲,是qt的原因调整为Serif就行了
在装个totem,ubuntu上很流行的
yum -y install totem-xine vlc xine-lib-extras-nonfree totem-xine-mozplugin