Add Dag Wieers repository to RHEL 4

I personally love the “htop” utility, but hate having to manually bring it down from Dag Wieer’s repository each time I want to install it on a RHEL server. If you add the Dag Wieers repository to up2date’s configuration file, you can automate this process (including getting future updates). Here’s how:

1) Open the up2date sources file:
vi /etc/sysconfig/rhn/sources

2) Add the repository:
yum dag http://apt.sw.be/redhat/el$releasever/en/$basearch/dag

3) Import the Dag Wieers GPG key:
# rpm –import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

Now you can add the htop program with the “up2date -i htop” command.