Enable extra repositories on CentOS

If you don't know yet the rpmforge repo then you are missing something vital! There are many good repositories that you can use but rpmforge is the most usuful out there for your CentOS installations. Repository is available for other Linux distributions too.
Here are some advantages to the rpmforge repositories:

* They don't replace base libraries or important core packages for repositories that are not EOL.
* Everything they do is open, you can download the SPEC files, you can see what we changed, you can rebuild it yourself.
* Report your problems, and they will fix them as soon as possible. Send them your bugfixes and they fix them instantly.
* They communicate with developers directly and try to have things fixed upstream.
* If you experience repository conflicts, they'll work with other repositories to fix them (when possible).
* They already have a huge userbase that is testing and providing improvements and bugfixes.
* They provide packages for a variety of distributions and architectures, each of these userbases are providing us with useful feedback.

Installation and Configuration

How to use this repository ?
Most people use this RPM repository together with a tool that allows to automatically download an install RPM packages and resolve dependencies. You have the choice of different tools, like Apt, Smart, Yum, up2date or Red Carpet.

However if you occassionally want to download something, we've made sure the packages are tagged with a proper distribution-tag so you can easily pick the right package for your distribution from the packages directory. The directory listing will also indicate the distribution.

The packages are all signed with this GPG key.

How to configure to use RPMforge ?
It's very easy. Just install the latest rpmforge-release package for your distribution and architecture.
This will automatically install the configuration and GPG keys that are for safely installing RPMforge packages.

Please select the correct command from the following list:

* Supported Red Hat Enterprise Linux 5 / i386:
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
* Red Hat Enterprise Linux 5 / x86_64:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
* Red Hat Enterprise Linux 4 / i386:
rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
* Red Hat Enterprise Linux 4 / x86_64:
rpm -Uhv http://apt.sw.be/redhat/el4/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.x86_64.rpm
* Red Hat Enterprise Linux 3 / i386:
rpm -Uhv http://apt.sw.be/redhat/el3/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el3.rf.i386.rpm
* Red Hat Enterprise Linux 3 / x86_64:
rpm -Uhv http://apt.sw.be/redhat/el3/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el3.rf.x86_64.rpm
* Red Hat Enterprise Linux 2 / i386:
rpm -Uhv http://apt.sw.be/redhat/el2.1/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el2.rf.i386.rpm
* Red Hat Linux 9 / i386:
rpm -Uhv http://apt.sw.be/redhat/9/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.rh9.rf.i386.rpm
* Red Hat Linux 7.3 / i386:
rpm -Uhv http://apt.sw.be/redhat/8.0/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.rh7.rf.i386.rpm

How do I use Apt ?
Apt originally was developed by the Debian project to work together with DEB packages. Since there are not many functional differences between RPM and DEB packages, Conectiva ported Apt to use RPM.

To install Apt, download the latest package for your distribution from: http://dag.wieers.com/packages/apt/. The configuration of Apt is inside the rpmforge-release package. If you've done that, the rest is simple. Update the local repository meta-data by doing:

apt-get update
You can upgrade your system with the latest packages with:

apt-get upgrade
And finally you can add new software by typing:

apt-get install <name of package>
Or search for software in the local repository meta-data:

apt-cache search <keyword> apt-cache show <name of package>
From time to time you may want to save some diskspace:

apt-get clean
Remember to update your local repository often before upgrading or installing software, so that you can enjoy the latest and greatest.

Some people rather use a graphical program to select and install packages. Apt has a nifty graphical front-end, called Synaptic. You can install it by doing:

apt-get install synaptic
Or download it from: http://dag.wieers.com/packages/synaptic/

How do I use Yum ?
Yum is an update-tool written in python. The advantage of Yum is that it is written in Python. The disadvantage is that there are many versions of Yum, and only recent versions work with recent distributions. If you like to use a single tool across all distributions, it's better to use Apt.

Yum is usually already installed if you're running Fedora Core. In case you are using Red Hat Enterprise Linux or an older Red Hat Linux distribution. You can find Yum at: http://dag.wieers.com/packages/yum/

The configuration of Yum is inside the rpmforge-release package. You need to install it yourself.

If you've done that, the rest is simple. Upgrade your system by doing:
yum update
You can add new software by typing:
yum install <name of package>
Or update installed software:
yum update <name of package>
Or search for software in the local repository meta-data:
yum search <keyword>
Or simply list all available software:
yum list available
From time to time you may want to save some diskspace:
yum clean

Posted on: 13/04/2008

If you want to leave a comment please Login or Register