“yum” installation on RHEL
Wondering if there’s any way to update the component of your RHEL systems if up2date isn’t working? (or you do haven’t registered to RHN), you might find this very interesting. Well I needed to setup this way since I need it for product simulations.
1. Download the yum from any repo. Here I got mine using wget, saved in /tmp (http://gd.tuwien.ac.at/opsys/linux/yum/2.0/yum-2.0.8-1.noarch.rpm)
2. Install using rpm -ivh command yum-2.0.8-1.noarch.rpm
3. Configure /etc/yum.conf to use compatible repository. I just put some comment here, just in case I need to recover. Or you may create a copy of this yum.conf, like yum.conf.yyyymmdd
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
# baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/$releasever/$basearch/
baseurl=http://mirror.centos.org/centos/4/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
# baseurl=http://mirror.dulug.duke.edu/pub/yum-repository/redhat/updates/$releasever/
baseurl=http://mirror.centos.org/centos/4/updates/i386/
gpgcheck=1
4. Download and import the CentOS GPG Key
# wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
# rpm –import RPM-GPG-KEY-CentOS-4
5. Run and see it yourself. Unless otherwise, you’ll wait a lot.
# yum update