jdvilla
10-01-2003, 06:29 PM
Have any ideas on this:
I was poking around trying to install a bunch a RPMs when I accidentally deleted everything in /var/lib/rpm/ when I should have only deleted the __db* files in that directory...
Now when I try to rebuild the database I get,
[root@dolphin rpm]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.3950
D: creating directory /var/lib/rpmrebuilddb.3950
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.3950/Packages create:mpool
D: opening db index /var/lib/rpmrebuilddb.3950/Packages create mode=0x42
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: removed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.3950/Packages
D: closed db environment /var/lib/rpmrebuilddb.3950/Packages
D: removed db environment /var/lib/rpmrebuilddb.3950/Packages
D: removing directory /var/lib/rpmrebuilddb.3950
but nothing like I am expecting (which is to watch the rpm database get rebuilt)
So, I tried to copy the files from another Red Hat 8 machine (/var/lib/rpm/* to my current machine) and then try and to rebuild the database from that. Well, my result is that I get the packages from the other machine, again not what I am expecting...
I was poking around trying to install a bunch a RPMs when I accidentally deleted everything in /var/lib/rpm/ when I should have only deleted the __db* files in that directory...
Now when I try to rebuild the database I get,
[root@dolphin rpm]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.3950
D: creating directory /var/lib/rpmrebuilddb.3950
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening db environment /var/lib/rpmrebuilddb.3950/Packages create:mpool
D: opening db index /var/lib/rpmrebuilddb.3950/Packages create mode=0x42
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: removed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.3950/Packages
D: closed db environment /var/lib/rpmrebuilddb.3950/Packages
D: removed db environment /var/lib/rpmrebuilddb.3950/Packages
D: removing directory /var/lib/rpmrebuilddb.3950
but nothing like I am expecting (which is to watch the rpm database get rebuilt)
So, I tried to copy the files from another Red Hat 8 machine (/var/lib/rpm/* to my current machine) and then try and to rebuild the database from that. Well, my result is that I get the packages from the other machine, again not what I am expecting...