RPM Community Forums

Mailing List Message of <rpm-users>

Re: About the consistency of /var/lib/rpm/__db.00?

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 22 May 2010 - 02:42:36 CEST
Message-id: <D26F598C-D6AB-4C09-9317-39B5EF3E8EA1@mac.com>

On May 21, 2010, at 7:35 PM, Marc MERLIN wrote:

> 
> I however have 3 questions I wasn't able to answer because I manage
> machines where most of the system is rsynced (including packages and the
> rpm DB).
> 

Database backups are a bit trickier than just blasting with rsync because
all the files need to be consistent.

Likely the best method is to do
	rsync /var/lib/rpm/package
and then do
	rpm --rebuilddb

One can rebuild into a different directory and check if paranoid;
but that's largely what --rebuilddb is already doing.

73 de Jeff
Received on Sat May 22 02:43:16 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.