Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another RH 6.2 question - rpm update

Status
Not open for further replies.

bjverzal

MIS
Apr 26, 2001
964
US
I've a fresh 6/2 Redhat install. I am trying to install some updates.

If I try to update rpm to 4.0.2, I get a message that "libdb-3.1.so" is needed. I have that library downloaded, but I suspect it is not that easy.

What do I need to do to update rpm from 3.0.4 to 4.0.2 ?

Bill.
 
Hi,

Updating RPM itself to version 4.x is sometimes a problem. Redhat changed the format of the rpm database with version 4.x and until you upgrade you may have problems using recently built rpms if they themselves have been created using rpm 4.x .

So, you need to get whatever is missing as rpms that were built by redhat with rpm < 4.0. Presumably, all the stuff shown as updates for 6.2 has been built using rpm 3.x so you have to use those rpms. Otherwise you get into a situation where it says rpm needs libdb-3.1.so and you have an rpm of that but when you try to install it to resolve the conflict it tells you it needs rpm >= 4.0.1 ! Catch-22 .

So, download ftp://rpmfind.net/linux/redhat/updates/6.2/en/os/i386/rpm-4.0.2-6x.i386.rpm
and ftp://rpmfind.net/linux/redhat/updates/6.2/en/os/i386/db3-3.1.17-4.6x.i386.rpm

... and put in a temp directory together. Then 'cd' to that directory and do as root :

# rpm -Uvh *.rpm

It may still fail with more missing dependencies so you then have to grab the other bits and try again.

The complete list of dependencies can be obtained by doing :

$ cd your_download_directory
$ rpm -qp --requires rpm-4.0.2-6x.i386.rpm

(you need the full path/name and -p flag to query an uninstalled rpm)

To save you the trouble the answer is :

gawk
fileutils
textutils
mktemp >= 1.5-2.1.6x
popt >= 1.5
/bin/sh
/sbin/ldconfig
ld-linux.so.2
libbz2.so.0
libc.so.6
libdb-3.1.so
libdb.so.2
libpopt.so.0
librpm.so.0
librpmbuild.so.0
librpmio.so.0
libz.so.1
/bin/sh

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top