David Timms wrote:
Jacques wrote:
yum (and/or yumex) has lost the database of all installed packages on
my FC5 system machine...
! yum does not store the installed packages database; rpm does.
yumex is a gui extension to yum, and hence requires yum to make it work.
yum uses the rpm system to install and remove packages, and hence rpm
must be working before yum {or yumex can work}. Hence you need to get
rpm in a decent state before even trying anything with yum/yumex.
The problem is now that :
1- I cannot update anything, because nothing shows as installed.
2- I cannot remove anything for the same reason.
I already went through a yum cleanall and rm -f /var/lib/rpm/__db*
rpm --rebuilddb
It does not work either.
Did you do the above as a single command {it does need to be separate} ?
Perhaps try the
# rpm -v --rebuilddb
Post any output that this gives (attachment if it is larger than a page).
There are some options with rpm that let you work on the database but
not actually install/remove anything, and vice-versa.
Trying to remember 1000+ installed packages is probably unlikely, but
there may be some useful log files still available:
Perhaps make a copy of them first:
# mkdir logs-old
# cp /var/log/yum*.log log-old
# cp /var/log/rpm*.log log-old
The rpm log is the list of installed packages at 4:00 on each of the
last 4 sunday mornings {or when the PC was next on}.
You would probably want to have the dvd inserted so that any package
required is findable.
Then for the items in the rpm log:
# rpm -Uvh --justdb kernel etc.
This will go through all the steps except actually installing the
package's files to hard disk.
I can't think of a more automated way to make it good.
I just thought of perhaps a faster way to get you going:
grab another machines rpm db, and place it on your machine.
Choose at least the same version with many of the same packages you have
installed.
Then you could use rpm to detect and then remove any packages that are
in your copied database but not actually installed on your disk:
# rpm -Va
Any package where lots of files are missing are ones that aren't
actually installed on your machine, and you could then rpm -e
the-package-that-isnt-isntalled.
DaveT.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum