Followed your instruction, but still cannot get it to work. Do you see any obvious problem from the following error?
# mkdir /etc/yum.repos.d
# cd yum.repos.d
[root@a1 yum.repos.d]# vi CentOS-Base.repo
[root@a1 yum.repos.d]# cd
[root@a1 ~]# yum check-update --enablerepo=c4
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.3.4 (#1, Feb 2 2005, 11:44:49)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq