RPM Community Forums

Mailing List Message of <rpm-users>

Re: Migrating from rpm-4.4.8 to rpm-5.1.6

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Mon 15 Dec 2008 - 22:39:38 CET
Message-Id: <200812152239.43239.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

sorry for the long delay.

You should try the following things:

- - Check whether these requirements are hard-coded in you vendor's spec 
files. You can get the spec from the SRPMS, for example.
- - Use rpm2cpio to extract the rpm5 packages. Set LD_LIBRARY_PATH and try 
accessing your existing RPM database
- - Manually replace the old rpm using --force --nodeps

In any case, be sure to have backups of both your old packages and your rpm 
database, the latter as tar archive and as textual version created with 
rpm -qa > list.txt!

HTH
		-- Eric

On Saturday 13 December 2008, JD <jd1008@gmail.com> wrote:
> I am having a hard time with rpm -ivh or -Uvh.
> rpm -Uvh rpm-5.0-0.2.0.fc7.rf.x86_64.rpm
> error: Failed dependencies:
>         getconf(GNU_LIBPTHREAD_VERSION) = NPTL is needed by
> rpm-5.0-0.2.0.fc7.rf.x86_64
>         librpm-5.0.so()(64bit) is needed by rpm-5.0-0.2.0.fc7.rf.x86_64
>         librpm-5.0.so(LIBRPM_0)(64bit) is needed by
> rpm-5.0-0.2.0.fc7.rf.x86_64
>         librpmdb-5.0.so()(64bit) is needed by rpm-5.0-0.2.0.fc7.rf.x86_64
>         librpmdb-5.0.so(LIBRPMDB_0)(64bit) is needed by
> rpm-5.0-0.2.0.fc7.rf.x86_64
>         librpmio-5.0.so()(64bit) is needed by rpm-5.0-0.2.0.fc7.rf.x86_64
>         librpmio-5.0.so(LIBRPMIO_0)(64bit) is needed by
> rpm-5.0-0.2.0.fc7.rf.x86_64
>         rpm = 4.4.2.2-2.fc7 is needed by (installed)
> rpm-libs-4.4.2.2-2.fc7.i386
>         rpm = 4.4.2.2-2.fc7 is needed by (installed)
> rpm-python-4.4.2.2-2.fc7.x86_64
>         rpm = 4.4.2.2-2.fc7 is needed by (installed)
> rpm-devel-4.4.2.2-2.fc7.i386
>         rpm = 4.4.2.2-2.fc7 is needed by (installed)
> rpm-devel-4.4.2.2-2.fc7.x86_64
>         rpm = 4.4.2.2-2.fc7 is needed by (installed)
> rpm-build-4.4.2.2-2.fc7.x86_64
>         /bin/rpm is needed by (installed)
> policycoreutils-2.0.16-16.fc7.x86_64
>
> I am getting similar issues with the rest of rpm-xxx packages I listed
> in previous msg.
>
> Man, there has to be a clean way to do this!
>
> Cheers,
>
> JD
>
> Eric MSP Veith wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hello,
> >
> > there *is* an answer from Jeff today on 14:40 CET.
> > However, I'd suggest you do the following:
> >
> > 1. Backup your RPM database
> > 2. Install rpm-5.1.x and rpm-libs-5.1.x. Since this may already leave a
> > broken RPM database (there are two RPM packages), You should run
> > "rpm2cpio FILE | cpio -idv" in some temporary directory to make sure
> > you have a backup RPM binary
> > 3. Run rpm --rebuilddb
> > 4. Try rpm -qa, if it fails, try removing the __db* files from your rpm
> > db directory, and re-run rpm --rebuild
> >
> > This should get it working.
> >
> > 		-- Eric
> >
> > On Saturday 13 December 2008, JD <jd1008@gmail.com> wrote:
> >> Hello Eric,
> >> I read you email explaining migrating from rpm 4.4.x to 5.1.x
> >>
> >> On my system, I have
> >> rpm-4.4.2.2-2.fc7
> >> rpm-python-4.4.2.2-2.fc7
> >> rpm-build-4.4.2.2-2.fc7
> >> rpm-devel-4.4.2.2-2.fc7
> >> rpm-libs-4.4.2.2-2.fc7
> >>
> >> How do I upgrade all these to rpm 5 without corrupting my databse?
> >>
> >> I posted a similar question to the rpm-users group, but I have not
> >> received a reply yet.
> >>
> >> Best regards,
> >>
> >> JD
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.9 (GNU/Linux)
> >
> > iEYEARECAAYFAklD8KoACgkQfkUtd7QNU/uJ5ACgg3irb0L65qr7RC6Sqqq1Yet/
> > 3XUAnjXzqXArRUR2EQ6pWHUQt8K9+zQC
> > =vFgq
> > -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklGzpoACgkQfkUtd7QNU/tQTgCgse22fCc6wmF/nRuqKllByVaL
mjwAn07JLAbLk1VuRiYWdwHu2rhWfWmQ
=3kyT
-----END PGP SIGNATURE-----
Received on Mon Dec 15 22:39:47 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.