Monday, May 05, 2008

 

Yum on RHEL4 with out up2date support

Its ugly... go download
  • python-urlgrabber
  • python-sqlite
  • python-elementtree
  • python-urlgrabber
  • yum
  • sqlite
from http://mirror.centos.org/centos/4/os/x86_64/CentOS/RPMS/

Force install yum with the --force --nodeps (it requires yumconf which I can not find, but we are creating our own config)

Now go edit /etc/yum.conf and use the following (adjust as desired)

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp
kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
#distroverpkg=centos-release
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1


[base]
name=Red Hat Linux-$releasever - Base
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1

[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.centos.org/centos/4/updates/x86_64/
gpgcheck=1

You should now be able to add RHEL4 compatiable packages easily via yum at this point.  If you actually have RHN access you can add the ability to connect via yum, but you will need to go read about that else where.

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?