Use Yum to install the mplayer in centos5. You have modified the information you have seen on the Internet. For your use.
It is troublesome to compile and install mplayer. In fact, centos can also use Yum to install mplayer. (RHEL is also available)
Take a look at centos 5:
Centos 5
First, make sure you have installed protectbase.
Protectbase
Yum-protectbase is provided in the centos 5 Package warehouse:
# Yum install Yum-protectbase
In centos 5, this plug-in is started by default.
Edit/etc/yum. Repos. d/CentOS-Base.repo and add a line at the end of the [base], [update], [centosplus] section:
Protect = 1
Invalidate the [centosplus] segment as follows:
Enabled = 0
Edit/etc/yum. Repos. d/CentOS-Base.repo and add the following line at the end of the other section:
Protect = 0
Download the rpmforge-release package. select one of the following two packages, depending on your machine. If you cannot determine which one to use, use the following command to determine:
(You can find a full list of rpmforge-release packages in the http://dag.wieers.com/packages/rpmforge-release/, but we recommend that you use one of the two listed above ).
Install Dag's GPG key
# Rpm -- import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Verify the downloaded package
# Rpm-K rpmforge-release-0.3.6-1.el5.rf. *. rpm
Security Warning: The rpmforge-release package injects GPG keys into your RPM database. As long as you verify the package and believe in Dag, it should be safe.
Installation Package
# Rpm-IVH rpmforge-release-0.3.6-1.el5.rf. *. rpm
This step will add the yum repository configuration file and inject the appropriate GPG keys.
Run the following command to test the function:
# Yum check-Update
There should be two rows of output:
Loading "protectbase" plugin
117 packages excluded due to repository Protections
The numbers above may be different, but several packages should be excluded from display.
# Yum install mplayer
The following describes how to insert mplayer to firfox:
# Yum install mplayerplug-in
OK! You can listen to songs online.