RPM Community Forums

Mailing List Message of <rpm-devel>

rpmdb size

From: Bernhard Rosenkraenzer <bero@arklinux.org>
Date: Tue 01 Dec 2009 - 11:07:00 CET
Message-ID: <dffc8196562918014c8eafb59c578ab8@blankpage.ch>
Hi,
we've been using rpm5 head on our build machines for about 2 weeks now -
after increasing the number of locks in DB_CONFIG, it works very reliably,
but now the build machines are running out of diskspace because the rpm
database takes up several (>20) gigabytes of space.

The files that have always been there are about the size they used to be,
but every rpm invocation creates a new log.000* files, each 10 MB in size.

I can see why the rollback features they bring along can be important to
some people, but for desktop users who install lots of updates on
relatively small disks (and for developers who build lots of stuff) this
can be a real problem -- is there a way to limit the number/size of log.*
to keep it within reasonable boundaries, short of running

cd /var/lib/rpm
rm -f `ls |grep -vE (Packages|DB_CONFIG)`
rpm --rebuilddb

whenever it gets too large?

ttyl
bero
Received on Tue Dec 1 11:08:40 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.