This case applies to most Red Hat Enterprise Linux 4, from i386 to i686 machines, i’ve successfully used it on our Red Hat Enterprise Linux ES release 4 (Nahant Update 6):
To use it for other systems / architectures, check the packages given at (check).
1. Get the main packages
(check) http://dag.wieers.com/rpm/packages/yum/
$wget http://dag.wieers.com/rpm/packages/yum/yum-2.4.2-0.4.el4.rf.noarch.rpm
(check) http://rpmfind.net/linux/rpm2html/
search.php?query=libsqlite.so.0&submit=Search+…&system=&arch=
$wget ftp://fr2.rpmfind.net/linux/PLD/dists/ac/ready/i386/libsqlite-2.8.15-1.i386.rpm
(check) http://rpmfind.net/linux/rpm2html/
search.php?query=python-elementtree&submit=Search+…&system=&arch=
$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-elementtree-1.2.6-7.el4.rf.i386.rpm
(check) http://rpmfind.net/linux/rpm2html/
search.php?query=python-sqlite&submit=Search+…&system=&arch=
$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/python-sqlite-0.5.0-1.2.el4.rf.i386.rpm
(check) http://rpmfind.net/linux/rpm2html/
search.php?query=urlgrabber&submit=Search+…&system=&arch=
$wget ftp://rpmfind.net/linux/dag/redhat/el4/en/x86_64/dag/RPMS/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
2. Install Rpm’s
$rpm -ivh libsqlite-2.8.15-1.i386.rpm $rpm -ivh python-elementtree-1.2.6-7.el4.rf.i386.rpm $rpm -ivh python-sqlite-0.5.0-1.2.el4.rf.i386.rpm $rpm -ivh python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm $rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm
3. Setup the Repository
(check) http://dag.wieers.com/rpm/packages/rpmforge-release/
$wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el4.rf.i386.rpm $rpm -ivh rpmforge-release-0.3.6-1.el4.rf.i386.rpm
4. Yum update all packages
$yum update

![[del.icio.us]](http://techtrouts.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://techtrouts.com/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://techtrouts.com/wp-content/plugins/bookmarkify/facebook.png)
![[Twitter]](http://techtrouts.com/wp-content/plugins/bookmarkify/twitter.png)
July 8th, 2008 at 1:25 pm
Very good and self-descriptive article for experienced as well as new Linux users.
July 11th, 2008 at 1:10 pm
u r awesome
July 27th, 2008 at 3:31 pm
thank you really descriptive article.
good work.
October 14th, 2008 at 9:03 am
Brilliant – thanks.
January 21st, 2009 at 8:45 pm
Brilliant!!!
January 29th, 2009 at 5:24 pm
i am new and this worked perfectly – thanks!
February 14th, 2009 at 1:17 am
Excellent post !!!
February 15th, 2009 at 1:24 pm
I was having problems obtaining the correct set of dependencies for the yum rpm even with a Redhat Subscription!, following your post was seamless and worked perfectly with rh4 vm appliance shipped from Redhat.
10 out of 10!
February 26th, 2009 at 2:35 am
Awesome!
February 28th, 2009 at 10:20 pm
most excellent!
March 5th, 2009 at 5:44 am
Great Article! Thanks!
March 9th, 2009 at 12:29 pm
on running yum update i get the following error:
Cannot open/read repomd.xml file for repository: sagator
no more mirrors to try
error 404: not found
April 7th, 2009 at 10:04 am
Hey, I have done everthing. but didn’t worked .. all the 5 packages were installed. yum: command not found.
May 7th, 2009 at 2:27 pm
web2:~ # rpm -ivh python-elementtree-1.2.6-7.el4.rf.i386.rpm
warning: python-elementtree-1.2.6-7.el4.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libexpat.so.0 is needed by python-elementtree-1.2.6-7.el4.rf.i386
i don’t know where to find this package, i’ve tried everything..
May 26th, 2009 at 3:31 am
thanks a lot guy…
I’m a new member of your site….
please tech me….
May 28th, 2009 at 8:41 am
Very good assistance with this..
May 28th, 2009 at 4:30 pm
thnx a lot dude…
it worked fine with me…
vijay, create a blank file /etc/yum.conf.
and it should work.
June 22nd, 2009 at 8:39 pm
I got an error:
[root@Chicago yum]# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
[root@Chicago yum]# yum install wireshark
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
[root@Chicago yum]#
July 22nd, 2009 at 3:25 am
yum updateroot@server [/]# yum update
Traceback (most recent call last):
File “/usr/bin/yum”, line 4, in ?
import yum
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 36, in ?
import config
File “/usr/lib/python2.4/site-packages/yum/config.py”, line 23, in ?
from parser import ConfigPreProcessor
File “/usr/lib/python2.4/site-packages/yum/parser.py”, line 3, in ?
import urlgrabber
File “/usr/lib/python2.4/site-packages/urlgrabber/__init__.py”, line 53, in ?
from grabber import urlgrab, urlopen, urlread
File “/usr/lib/python2.4/site-packages/urlgrabber/grabber.py”, line 406, in ?
import keepalive
File “/usr/lib/python2.4/site-packages/urlgrabber/keepalive.py”, line 339, in ?
class HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler):
AttributeError: ‘module’ object has no attribute ‘HTTPSHandler’
August 4th, 2009 at 11:35 pm
Thanks for the excellent instruction set. When I ran the last command “yum update”, it failed at the very end with the following error –
Error: Missing Dependency: nmap = 2:4.20 for package: nmap-frontend
I guess I have to download that package. I tried searching in google but confused about the version to download as none of those I find are 2:4.20 . Where can I get the exact command to download that?
August 6th, 2009 at 11:42 pm
Thank you for the straight-forward and helpful instructions for this debian tourist :)
August 15th, 2009 at 11:46 am
thanx frnd.this is very helpful.
September 8th, 2009 at 4:10 pm
Please help to fix yum update error:
Error: Missing Dependency: nmap = 2:4.20 for package: nmap-frontend
October 21st, 2009 at 2:57 pm
realy nice “know how” instructions…
THX
October 22nd, 2009 at 11:00 pm
hi
i have error
# yum update
Traceback (most recent call last):
File “/usr/bin/yum”, line 28, in ?
import yummain
ImportError: No module named yummain
November 1st, 2009 at 10:48 pm
i found a solution to the yum issue…
The link is :
http://fir3net.com/UNIX-/-Linux/Redhat-/-Fedora/yum-update-shows-module-object-has-no-attribute-httpshandler-error.html
November 5th, 2009 at 12:29 pm
Very good briefing on how to get yum for RHEL ES 4. Thanks. Worked for me :)
November 13th, 2009 at 5:25 am
I got a good information!
Very Thanks.(from Japan)
November 17th, 2009 at 4:09 am
Terrific! Thanks a lot.
November 19th, 2009 at 11:05 am
Thanks wont be enough to you.
December 12th, 2009 at 12:01 am
Perfect! Thak you! Congratulation!
January 20th, 2010 at 7:28 am
gr8 article dear :)
February 2nd, 2010 at 8:00 pm
You rock :D thx a lot!!
February 5th, 2010 at 12:12 pm
Thank you! great article!
February 25th, 2010 at 5:25 pm
Excellent friend!!! It’s like reading an ABC book ;-)
March 1st, 2010 at 11:23 am
Excellent, everything works smoothly! Thank you very much.
March 1st, 2010 at 11:31 am
Just want to add if the repository doesn work you can add the following:
[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.centos.org/centos/4/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/updates/i386/
gpgcheck=1
April 4th, 2010 at 9:57 pm
Thank you. This tutorial is very helpful for newbies like me
April 28th, 2010 at 7:07 am
Thank you very much.
May 2nd, 2010 at 1:09 pm
[root@localhost root]# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
May 2nd, 2010 at 8:19 pm
Very clear and consise instructructions. You saved my day.
June 2nd, 2010 at 2:14 pm
Thank You for your nice & helpful article.
June 10th, 2010 at 9:06 am
Thanxxx a lot.. Its really helpfull..
July 15th, 2010 at 8:36 pm
Thanks a lot ! Worked like a charm
July 21st, 2010 at 11:57 am
Thank you!! very helpful