Rebuild .deb packages database

Jay Mistry jaylinux53 at gmail.com
Wed Sep 16 16:36:13 UTC 2009


Is there a command to rebuild the package database in Ubuntu - equivalent to
the  < rpmdb --rebuilddb / rpm --rebuilddb > for RPM-based systems
(Fedora/openSUSE), as mentioned <goog_1253118382263>here<goog_1253118382263>
: <http://linuxpoison.blogspot.com/2007/10/repair-corrupt-rpm-database.html>
http://linuxpoison.blogspot.com/2007/10/repair-corrupt-rpm-database.html

For openSUSE, the corresponding cmds are as given here:
http://en.opensuse.org/SDB:Speed_up_Package_Manager_Stack#Defragment_internally

$ su
> # cp /var/lib/rpm/__db.001 /home/(user)
> # rm /var/lib/rpm/__db.001
> # cp /var/lib/rpm/__db.002 /home/(user)
> # rm /var/lib/rpm/ __db.002
>

# rpm –rebuilddb
>

Thanks,

Jay

-- 
Linux User 483705 | openSUSE 11.1, Ubuntu 9.04  (i686) w/ Windows XP
Smolts:
http://www.smolts.org/client/show/?uuid=pub_b541a450-9bc1-45fd-beab-d46ee43a0108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090916/e5a9fd85/attachment.html>


More information about the ubuntu-users mailing list