Install rxvt-unicode on CentOS 5
Posted by jason on Dec. 2, 2011, 6:41 a.m.
Here's how to enable the EPEL repository and use it to only install the rvxt-unicode terminal.
Get the EPEL RPM package:
jason@jason:~ [322]$ wget -c http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Install the .rpm:
jason@jason:~ [323]$ rpm -i epel-release-5-4.noarch.rpm
Edit the /etc/yum.repos.d/epel.repo
file and make the "[epel]" section look something like this:
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
includepkgs=rxvt-unicode libAfterImage
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
The other sections should have "enabled=0"--unless you need them for something.
Note the "includepkgs" variable: you can enter a space-delimited list of packages that this repository will be used for so that all other packages are ignored. This feature is helpful in this case, because I want to install rxvt-unicode (and the libAfterImage dependency) from the EPEL and use the official CentOS repos for everything else.
Import the GPG key now:
jason@jason:~ [323]$ rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Now, install rxvt-unicode:
jason@jason:~ [325]$ yum install rxvt-unicode