LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2006, 11:07 PM   #1
new2lin
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
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.
 
Old 11-25-2006, 08:04 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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
 
Old 11-25-2006, 10:30 PM   #3
new2lin
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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!
 
Old 11-26-2006, 08:01 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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....
 
Old 11-26-2006, 11:19 AM   #5
new2lin
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Issue resolved

Last edited by new2lin; 11-26-2006 at 11:20 AM.
 
Old 11-26-2006, 11:20 AM   #6
new2lin
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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!
 
Old 11-26-2006, 12:09 PM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Run; yum update
 
Old 11-26-2006, 12:55 PM   #8
new2lin
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Did that ... all packages updated. However, has the crash fooled yum to believe that everything is updated?
 
Old 11-26-2006, 01:23 PM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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
 
Old 11-26-2006, 08:37 PM   #10
new2lin
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I will try that and let you know if I have any issues.

Thanks very much Lenard! I appreciate your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fc6 yum install error multiple repository entries joncampbell60 Linux - Software 7 11-28-2006 12:51 AM
Software installation FC5/FC6 Ammad Linux - General 3 11-15-2006 03:52 PM
Checking for new versions of software introuble Programming 9 04-23-2006 06:10 PM
GRUB Loader shows all the versions untfitch02 Red Hat 4 01-25-2005 10:09 AM
GRUB shows two linux kernel versions nishmal Red Hat 2 02-02-2004 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration