Rebuild .deb packages database
Jay Mistry
jaylinux53 at gmail.com
Wed Sep 16 17:36:27 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 here (/would like
to do this from CLI, rather than from Synaptic/ )
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
More information about the ubuntu-users
mailing list