LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yumex shows two entries with different versions for several software (FC6) (https://www.linuxquestions.org/questions/linux-newbie-8/yumex-shows-two-entries-with-different-versions-for-several-software-fc6-504646/)

new2lin 11-24-2006 11:07 PM

Yumex shows two entries with different versions for several software (FC6)
 
Hello,

I have recently installed FC6. When I go to Yumex and click on "Remove", I can see two entries of several software. The version numbers are different. For example, I have two versions of firefox -- 1.0.5.8 and 1.0.5.7. I use four repos: core, extras, update, linva. (I had a crash when installing updates for the first time). What can I do to eliminate the duplicates? Thanks for your help.

Lenard 11-25-2006 08:04 PM

Select the version you do not want and remove, I do not use yumex but you should have an option to do so, if not then as root type something like (using your example);

rpm -e firefox-1.0.5.7

new2lin 11-25-2006 10:30 PM

Thanks for the reply, Lenard. Yes, I can uninstall it one at a time using yum or yumex. However, I want to uninstall all the repeats together because I have about 30-40 software entries with two different versions. Also, can removing the older version affect anything else?

I would also like to know why, in the first place, were two entries installed? Thanks!

Lenard 11-26-2006 08:01 AM

You had a crash (you said so), yum typically installs the new packages then removes the older packages. So this crash may have happened after the newer packages were installed but before the older packages were removed (I'm guessing here).

I don't use yumex but you should be able to select all the older repeat packages and remove them all at the same time. If not then have a look at kyum (which) I do use and this can be done with kyum. It is also possible to remove multiple packages using yum;

yum -y remove foo1 foo2 foo3....

new2lin 11-26-2006 11:19 AM

Issue resolved

new2lin 11-26-2006 11:20 AM

Issue resolved, but I have a question
 
After looking around for a couple of hours, I found this site and a script. That seemed to clean up everything.

https://www.redhat.com/archives/fedo.../msg00116.html

I appreciate everyone's help.

But my question is ... When yum crashed, did it somehow mark "all packages are updated"? The crash happened about 10 minutes into the update process. How do I make sure that all packages have been updated? Thanks!

Lenard 11-26-2006 12:09 PM

Run; yum update

new2lin 11-26-2006 12:55 PM

Did that ... all packages updated. However, has the crash fooled yum to believe that everything is updated?

Lenard 11-26-2006 01:23 PM

Then check if your worried, delete everything for the /var/cache/yum directory and rebuild the rpm database; rpm --rebuilddb -vv

A little script file for future use, it creates a listing of all installed packages and keeps the previous version of the installed packages. It will post an error the first time used;

#!/bin/bash
cp /rootInstalled.txt /root/PreviousList.txt
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" | sort > /root/Installed.txt
exit 0

Feel free to adjust to suit your needs, do no forget to make the script executable, if the file is named Installed then; chmod +x Installed

new2lin 11-26-2006 08:37 PM

I will try that and let you know if I have any issues.

Thanks very much Lenard! I appreciate your help.


All times are GMT -5. The time now is 06:19 PM.