[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: SUG: Automatic RPM database verification and repair
- From: Tony Nelson <tonynelson georgeanelson com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: RE: SUG: Automatic RPM database verification and repair
- Date: Wed, 29 Nov 2006 15:45:59 -0500
At 10:57 PM -0600 11/28/06, Stanley, Jon wrote:
>>
>>The "right" way would be to make a copy of the Packages file, check it, and
>>only save it if the check passes. According to Jeff, the proper check is
>>to do a "rpm --rebuilddb" with that Packages file and see if it works, but
>>I haven't tried that method.
>>--
>
>Is there some way to verify that a --rebuilddb *would* work against it?
>I have an aversion to modifying production data, for obviously good
>reason.
See "make a copy of the Packages file", above. If that works, then it will
work. Unfortunately, it won't tell you if the new database has any
significant difference from the old one, so if "rpm --verifydb" says the
database is OK and this works, you don't really know if there was a problem
previously unless RPM already puked. (My bad database, acceptable to RPM
for most operations, did fail the "rpm --verifydb" check.)
--
____________________________________________________________________
TonyN.:' The Great Writ <mailto:tonynelson georgeanelson com>
' is no more. <http://www.georgeanelson.com/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]