Installing, Disabling & Removing RPMforge Repository

RPMforge is a collaboration of Dag, Dries, and other packagers. They provide over 4000 packages for CentOS, including mplayer, xmms-mp3, and other popular media tools. The RPMforge collaboration repackages many RPMs that are not included as part of the stock Linux distributions, including versions of many packages still in testing. Visit the RPMforge Website for more information.


Install RPMforge Repository on CentOS

The file names listed are for specific versions of the operating system and will vary slightly. Check the repository for the correct file name.
  1. Download the rpmforge-release package. Choose one of the two options below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command
    uname -i
  2. wget
  3. Install DAG’s GPG Key
    rpm --import
  4. Verify the package you have downloaded
    rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
  5. Install the package
    rpm -ivh rpmforge-release-0.5.2-2.el5.rf.*.rpm
  6. Delete the downloaded RPMforge-release package

Configure RPMforge Repository on CentOS

  1. Open the RPMforge configuration file
    1. Ensure the RPMForge repository is enabled:
      enabled = 1
    2. Add the following text to the end of the RPMForge repository entry
      priority = 3
  2. Check that you got the priorities set correctly
    yum check-update
    You should output similar to the following:
    Loaded plugins: fastestmirror, priorities
    xxx packages excluded due to repository priority protections

Managing Repositories

  1. List all enabled yum repositories:
    yum repolist
  2. Temporary Disable RPMForge repository:
    1. To disable the repo, open the RPMforge configuration file
    2. Change the enabled flag to 0:
      enabled = 0
  3. remove rpmforge as package repository
    rpm -e rpmforge
    This command removes the /etc/yum.repos.d/rpmforge.repo file.


1 comment: