Hi! I'm trying to upgrade my Redhat 3AS server, but I'm encountering problems. The first problem was, I didn't know what repository to use. I settled on http://mirror.centos.org/, but using it is strange, as not all mirror servers have all of the directories, and so sometimes links appear broken, but the problem goes away if I hit reload. A number of them have empty directories, like this one: http://mirrors.versaweb.net/centos/3.5/extras/i386/RPMS/ The second problem was, I didn't know what CentOS version to use. I'm guessing 3.5 is the right one for compatibility with RH 3AS. The third problem is, yum reports: # yum install centos-logos Setting up Install Process Setting up Repos http://mirror.centos.org/centos-3/3.5/extras/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found Trying other mirror. Cannot open/read repomd.xml file for repository: extras failure: repodata/repomd.xml from extras: [Errno 256] No more mirrors to try. # Am I using the wrong version of yum? Is there an official yum.conf to use? Thanks! -- Penelope Fudd <centos at ch.pkts.ca>
I found my problem.. heh. The Centos-3.5 directories aren't set up to use the latest Yum; they don't have repomd.xml files. The secret is to use rpm -Uvh http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.8-1.noarch.rpm and an /etc/yum.conf like this: ====8<-----cut-here------------ [main] exclude=mod_ssl* httpd* perl mysql* php* #add this line for cpanel servers 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-3/3.5/os/$basearch/ gpgcheck=1 #released updates [update] name=CentOS-$releasever - Updates baseurl=http://mirror.centos.org/centos-3/3.5/updates/$basearch/ gpgcheck=1 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons baseurl=http://mirror.centos.org/centos-3/3.5/addons/$basearch/ gpgcheck=1 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras baseurl=http://mirror.centos.org/centos-3/3.5/extras/$basearch/ gpgcheck=1 -- Penelope Fudd <centos at ch.pkts.ca>
Oh, and after it's all done, when rpm looks like it's permanently broken with errors like this: # rpm --rebuilddb rpmdb: Program version 4.2 doesn't match environment version error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index # The solution is: # cd /var/lib/rpm # rm __* # rpm --rebuilddb Thank heavens for Google, and that pasting error messages into it is the fastest way to get help. -- Penelope Fudd <centos at ch.pkts.ca>