On 12/04/03 08:22, Jeff Johnson wrote:
On Thu, Dec 04, 2003 at 09:16:38AM -0500, Net Llama! wrote:
On Thu, 4 Dec 2003, Jeff Johnson wrote:
I'd be happy to, but the box in question has been running rpm-3.0.6, and i read somewhere (that i can't find now) that the rpm DB from rpm-3.x isn't compatible with rpm-4.x. So, i fear losing my DB if i upgrade. If this is not true, i'll gladly jump to 4.x.
Tar up /var/lib/rpm and upgrade to rpm-4.0.5, and convert from db1 -> db3 is my suggestion.
Is this as simple as running: rpm --rebuilddb
after upgrading to rpm-4.x ?
Yup.
Save tarball of /var/lib/rpm first.
I finally had some time to do this, but it didn't turn out too well. I backed up /var/lib/rpm, built rpm-4.0.5, installed it, ran 'rpm --rebuilddb', and now the only thing in the rpm DB is rpm-4.0.5. Am i missing something obvious?
Replying to myself, i figured this out after googling a bit: http://rhn.redhat.com/errata/RHSA-2001-016.html
The key for me, was step 5 on that page, where I moved /var/lib/rpm/Packages out of the way, and then ran 'rpm --rebuild' again. This time, after about 2 minutes of chugging, I had an rpm DB with valid data in it.
Perhaps this nugget might help someone else in the future.
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ L. Friedman netllama@xxxxxxxxxxxxx Linux Step-by-step & TyGeMo: http://netllama.ipfox.com
1:20pm up 19:17, 1 user, load average: 0.20, 0.28, 0.29
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list