Re: /var/lib/rpm/Packages broken



On Thursday 18 December 2003 09:16, you wrote:
> tor 2003-12-18 klockan 07.29 skrev Gadgeteer:
> > rpmdb: /var/lib/rpm/Packages: file size not a multiple of the pagesize
> >
> > How do I rebuild my package index file?
>
> Doesn't "rpm --rebuilddb" work?

No.  This rebuilds the db files from the Packages file.  Jeff Johnson at Red 
Hat offered the below solution which may work with newer RPM installs.  
Unfortunately, it is a RH-8.0 server that I am trying to save.

/* suggested solution */
Run
        /usr/lib/rpm/rpmdb_verify /var/lib/rpm/Packages

If that command whines, then you need to do
        cd /var/lib/rpm
        mv Packages Packages-ORIG
        /usr/lib/rpm/rpmdb_dump Packages-ORIG | /usr/lib/rpm/rpmdb_load 
Packages
        /usr/lib/rpm/rpmdb_verify Packages
        rpm --rebuilddb -vv

-- 
ken



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]