On Fri, 2003-03-07 at 10:46, Matthew Saltzman wrote: > Quotes are edited. > > On Fri, 7 Mar 2003, Ed Wilts wrote: > > > On Fri, Mar 07, 2003 at 06:36:07AM -0800, Randy Arnold wrote: > > > > > > Now, for some reason my RPM database is gone. > > > > > > Any ideas? > > > > If you have backups of /var/lib/rpm, restore them. If not, you've got 2 > > basic choices, both ugly: > > 1. Find every file on the system and attempt to determine which package > > they came from. Then rpm -ivh --justdb <package>. If you registered > > and updated via RHN, then go to the web site and extract the package > > list. That will save you a *lot* of work. If you've done an up2date -p > > since you corrupted your database, you've dug yourself deeper in a hole. > > > > 2. Do a fresh install. > > > > If you have an accurate package list from RHN or your backups, use > > option 1. If you don't, use option 2. > > If you have an accurate package list, then you don't have to go through > the pain of finding the packages for all files. Just "rpm -ivh --justdb > <package> for each of the packages. > > One of the weekly cron jobs dumps the results of "rpm -qa" to > /var/log/rpmpkgs. That might be a place to start, but you'll need to know > what you've upgraded since the last dump. >
Very cool. I did not know that. btw it is a daily thing on my 7.3 laptop. definitely worth backing up . Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list