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: Sat 13 Dec 2008 - 18:28:09 CET
Message-Id: <200812131828.10164.eveith@wwweb-library.net>
-----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-----
Received on Sat Dec 13 18:59:29 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.