Rebuilding /var/lib/rpm/Packages
Hello
I found my Fedora 10 system's "/var/lib/rpm/Packages" file got deleted. After running the "rpm --rebuilddb" command, it creates "Packages(12 KB in size) along with three __db.*" files but "rpm -qa" command is not showing any package list. Is there any way to recreate the "/var/lib/rpm/Packages" from scratch without reinstalling the OS?.. Any help is appreciated. |
No sweat... Just re-initialize the database (actually build from scratch).
rpm -v --initdb |
Error on rpm -v --initdb
Thanx for the reply but this is what happens on rpm -v --initdb
Code:
# rpm -v --initdb |
I would blow away your existing db files;
[root@shell]# rm -f /var/lib/rpm/__db* And rebuild the rpm database; [root@shell]# rpm --rebuilddb The above should do the trick... |
All times are GMT -5. The time now is 11:38 PM. |