-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 September 2003 11:55 pm, Didier Casse wrote: > One of my friends accidentally remove her /var/lib/rpm folder entirely > when she found out that her rpm sucked at some point, instead of simply > removing the /var/lib/rpm/__db* > > Now the problem is how to get back this database! rpm --initdb followed > by rpm --rebuilddb doesn't seem to work since rpm -qa is totally blank.
If /var/log/rpmpkgs exists and is current (Save it quickly before it gets rotated by log rotate), and you have available the rpm packages (On CD, in /var/spoll/up2date, etc.) I have a script that can help. http://www.tuxfan.homeip.net:8080/hacks/recover_rpm_db.sh ./recover_rpm_db.sh Usage: recover_rpm_db.sh -f [file_name] -p [path[s] to rpm files]. Where 'file_name' is a file containing a list of rpm packages that should be included in the rpm database, and -p is the path or paths that contain the rpm packages. Hope that helps, - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3}|8.0|9 in 8M of RAM: http://www.rule-project.org/en/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/Xs9Mn/07WoAb/SsRAtyZAJ9gVXiHD5NS5hs4u+jwTmTXaYWsjQCgqa4p ERTM8GaxzYzXspWopZe1tcs= =Oc/a -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list