2011/6/28 Mark Hatle <firstname.lastname@example.org>:
> I was hoping someone can help me understand what is happening and how to address
> it for our embedded system needs.
> For reference:
> from the above, the complaint is:
> When using zypper/rpm install/removal package, database files and log files
> cost a lot of disk space and may cause target image out of space.
> The first time when we use RPM, a lot of database files will be created, larger
> than 10MB.
> Each of the __db.* files created are large. Nearly 10 MB each. In addition in
> the "log" directory are additional files that are also nearly 10 MB each.
> Are there any suggestions for changing the BerkleyDB configuration, either the
> config file or RPM settings/usages that would help me shrink down these sizes --
> or potentially help me eliminate the creation of these files?
> I'm currently using rpm-5.4.0 from rpm-5.4.0-0.20101229.src.rpm.
You probably want to enable automatic log removal, ie. look at
Db_open() in URPM:
For where it's actually gets enabled, look closer at line 3270.
This will make berkeley db remove all the log files that's not needed
so that you'll
only keep the last file under /var/log/rpm/log.
Received on Tue Jun 28 19:41:11 2011