Speed up the Package Manager in openSUSE 10.3

November 15th, 2007 by heathenx

I noticed last night that my package management system in openSUSE 10.3 was slowing down. It was probably due the growing list of repositories that I have added to Yast. It definitely wasn’t as fast as it was when I first got openSUSE up and running. I really do not use the Software Manager in Yast all that often. I use Smart because it closely resembles Apt.

So I did a quick Google search and found an article on the openSUSE explaining what needed to be done to speed zypper up again. Apparently the database gets fragmented and so does the rpm database from time to time. Since I update packages often and install new ones I thought that perhaps my package database wasn’t as lean as it should be. So this is what needed to be done.

Step 1. Regenerate the zypper database (as root)

rm /var/cache/zypp/zypp.db ; zypper refresh

That may take a couple of minutes

Step 2. Defragment the RPM database (as root)

rpm –-rebuilddb

Run the above command just once. Also, if your RPM database ever gets corrupted (only happened to me once in 5 years) then this command will work for that too.

Now, to test it, go into Yast>Software>Software Management. It should take less time to update before getting into the actual software manager.

Further reading

2 Responses to “Speed up the Package Manager in openSUSE 10.3”

  1. lalala Says:

    I had to put two dashes in front of rebuilddb to get it to work.

  2. heathenx Says:

    Whoops! Looks like a typo on my part. I’ll fix it.

Leave a Reply