Re: Strange yum behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jacques wrote:
Hi everybody
 My problem is simple, but apparently not simple to resolve.
I already asked this question on two different forums (fedora and sitepoint), without any positive answer.
Being newbie to this kind of information distribution, I apologize if any procedural order is bypassed.

 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.
 3- I cannot install anything because so many packages are logically not installed, making yum/yumex enter in a dependencies frenzy.
 4- beyond this problem, the machine works fine. It's still the one i'm working on at present time.
Presently, yumex is configured without the Auto refresh on start in the Edit -> Preferences.
 Here is the result after going through the repositories refresh.
10:03:17 : Current Settings :
 10:03:17 : autocleanup: False
 10:03:17 : autorefresh: False
 10:03:17 : debug: True
 10:03:17 : exclude: []
 10:03:17 : filelists: False
 10:03:17 : fullobsoletion: False
 10:03:17 : mirrordetection: 'best'
 10:03:17 : noplugins: False
 10:03:17 : processsafemode: True
 10:03:17 : proxy: ''
 10:03:17 : recentdays: 14
 10:03:17 : usecache: False
 10:03:17 : Mirrordetection : best
 10:03:17 : Yum Version : 2.6.1 (/usr/share/yum-cli)
 10:03:17 : Setup Yum : Config
 10:03:17 : Setup Yum : Plugins
 10:03:17 : Setup Yum : Transaction Set
 10:03:17 : Setup Yum : RPM Db.
 10:03:17 : Setup Yum : Base setup completed
 10:03:17 : Enable/Disable Repositories
 10:03:22 : Loading Repositories Data
 10:03:22 : Loading Repositories Data : Init. core repository
 10:03:22 : Loading Repositories Data : Init. extras repository
 10:03:22 : Loading Repositories Data : Init. updates repository
 10:03:22 : Loading Repositories Data : Populate Package Sack for core
 10:03:22 : Loading Repositories Data : Populate Package Sack for extras
 10:19:17 : Added 217 new packages, deleted 171 old in 24.89 seconds
 10:19:17 : Loading Repositories Data : Populate Package Sack for updates
 10:25:59 : Added 24 new packages, deleted 17 old in 5.47 seconds
 10:26:01 : Loading Repository Group Data
 10:36:47 : Loading Repositories Data completed
 10:36:47 : Building Package Lists : Updates
 10:36:50 : Building Package Lists : 0 Updates found
 10:36:50 : Building Package Lists : Installed
 10:36:50 : Building Package Lists : 0 Installed packages found
 10:36:50 : Building Package Lists : Available
 10:37:48 : Building Package Lists : 5972 Available packages found
 10:37:48 : Building Package Lists completed
10:37:49 : Updating groups view, populate view with data 10:37:49 : Repository initialization completed in 2072.17 seconds Can someone give me a clue on how to rebuild the installed packages database ? 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.

DaveT.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux