zypper update makes /var/lib/rpm/Packages grow and grow and grow...
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
zypper update makes /var/lib/rpm/Packages grow and grow and grow...
Each time I run "zypper update" on a SUSE 11.1 server it causes /var/lib/rpm/Packages to grow by a few KB even though there are no new updates. Since a cron runs this a couple of times a day the file is almost 400MB on one of my servers. I'd like to shrink the file back to a reasonable size before I run out of space on my /var partition, so I ran this:
# zypper clean --all
# rpmdb --rebuilddb
Any suggestions on how to shrink /var/lib/rpm/Packages?
... but that had no effect. Here's what it looks like at the moment when I run "zypper update: manually:
The problem appears to be affecting a number of different servers running OpenSUSE 11.1. I tried the same thing on an OpenSUSE 11.4 server and did not have the problem.
The problem is not causing any errors, just using an excessive amount of /var volume space, and the servers are scheduled to be upgraded to 11.4 (bare metal upgrade), so I think I'm going to leave this alone for now and let the upgrade solve the problem for me.
Thanks for the pointer to the detailed rebuild script. If zypper starts spewing errors I'll try that fix.
The problem is not causing any errors, just using an excessive amount of /var volume space, and the servers are scheduled to be upgraded to 11.4 (bare metal upgrade), so I think I'm going to leave this alone for now and let the upgrade solve the problem for me.
Probably a good idea.
Quote:
Originally Posted by Earl3
Thanks for the pointer to the detailed rebuild script. If zypper starts spewing errors I'll try that fix.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.