close

http://wiki.centos.org/Repositories/RPMForge#head-9fa574af94d24a84aa13e4bdfa6f17cf9a404954-2

-----------------------------------

Installing RPMForge

RPMForge is a collaboration of Dag, Dries, and other packagers. They provide over 2600 packages for CentOS, including mplayer, xmms-mp3, and other popular media tools. It is not part of RedHat or CentOS but is designed to work with these major distributions.


Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages are newer than the official CentOS version and you should not blindly install those packages. Before you replace a CentOS package you should make sure that will not break anything important. In most cases you can revert any mistakes but it is best to avoid the mess.

  1. Installing RPMForge
    1. CentOS 5
      1. Protectbase
      2. rpmforge
    2. CentOS 4
      1. Protectbase
      2. rpmforge
    3. CentOS 3
    4. CentOS 2

CentOS 5

You should make sure that you have ProtectBase installed.

Protectbase

yum-protectbase is available in the CentOS 5 repositories:

yum install yum-protectbase

Plugins are enabled in CentOS 5 by default.

Edit the file /etc/yum.repos.d/CentOS-Base.repo and add the following line to the [base] and [update] and [centosplus] section:

protect=1

Leave the [centosplus] section disabled:

enabled=0

Edit /etc/yum.repos.d/CentOS-Base.repo and add the following line to the other sections

protect=0

rpmforge

Download the rpmforge-release package. Choose one of the two links below, depending on your architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

(You can find a complete list of rpmforge-release package packages at http://dag.wieers.com/packages/rpmforge-release/ but it is recommended 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 package you have downloaded

rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm

Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the package and trust Dag then it should be safe.

Install the package

rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm

This will add a yum repository config file and import the appropriate GPG keys.

Test with this command:

yum check-update

It should output these two lines:

Loading "protectbase" plugin
...
76 packages excluded due to repository protections

The number above may differ, but there should be several packages shown as being excluded.

If so then it looks like things are working so try installing something like this

yum install mplayer

CentOS 4

You should make sure that you have ProtectBase installed.

Protectbase

Assuming you have centos extras enabled in your current yum configuration

yum install yum-plugin-protectbase

Edit the file /etc/yum.conf and add the following line to the [main] section:

plugins=1

Edit the file /etc/yum.repos.d/CentOS-Base.repo and add the following line to the [base] and [update] section:

protect=1

Edit /etc/yum.repos.d/CentOS-Base.repo and add the following line to the other sections

protect=0

rpmforge

Download the rpmforge-release package. Choose one of the two links below, depending on your architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

(You can find a complete list of rpmforge-release package packages at http://dag.wieers.com/packages/rpmforge-release/ but it is recommended 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 package you have downloaded

rpm -K rpmforge-release-0.3.6-1.el4.rf.*.rpm

Security warning: The rpmforge-release package imports GPG keys into your RPM database. As long as you have verified the package and trust Dag then it should be safe.

Install the package

rpm -i rpmforge-release-0.3.6-1.el4.rf.*.rpm

This will add a yum repository config file and import the appropriate GPG keys.

Test with this command:

yum check-update

It should output these two lines:

Loading "protectbase" plugin
...
76 packages excluded due to repository protections

If so then it looks like things are working so try installing something like this

yum install mplayer

Hope that it works :-)

CentOS 3

Does not have protectbase.

Does have a rpmforge-release package but you don't want it enabled

CentOS 2

Does anyone still use that ;-)
arrow
arrow
    全站熱搜

    Aminzai 發表在 痞客邦 留言(0) 人氣()