LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-07-2006, 02:35 PM   #1
n926bb
Member
 
Registered: Jul 2004
Posts: 35

Rep: Reputation: 15
Upgrade leaves old version installed


Using FC5, upgrading packages with yum and/or yumex.
While parsing the output of "yum list", I noticed a few multiple package entries with different versions. This was confirmed with "rpm -q packagename". A short sample follows:

[root@xxx ~]# rpm -q wpa_supplicant
wpa_supplicant-0.4.8-5
wpa_supplicant-0.4.8-7.fc5
wpa_supplicant-0.4.8-10.fc5

[root@xxx ~]# rpm -q util-linux
util-linux-2.13-0.20
util-linux-2.13-0.20.1

[root@xxx ~]# rpm -q tzdata.noarch
tzdata-2006d-1.fc5
tzdata-2006f-1.fc5
tzdata-2006g-1.fc5

Can anyone tell me if this is normal or a bug?

Thanks,

Manny
 
Old 06-07-2006, 03:02 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Not sure about YUM, but YUMEX has a setting for removing the RPMs after installing them.
 
Old 06-07-2006, 05:17 PM   #3
n926bb
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
PTrenholme you are wright, however that setting is to remove the downloaded rpms. By the way you can find those rpms at /var/cache/yum/<depository>/packages; provided you have not chosen the remove option. This is the same for yum as is for yumex.

Manny
 
Old 06-08-2006, 01:14 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Yes, I knew that. In fact, my /var/cache is symlinked to a different drive that's backed up fairly frequently. That's so I don't need to back up the "working" software, but can recover from a crash (or boo-boo) without needing to download too much.

Try this:
Code:
rpm -aq | sort | gawk 'begin {x="";};{if (x == $0) print x;x = $0}'
which should list any duplicates actually loaded. For my system, nothing is printed. So, if you see anything, it's a little strange. I think the query you ran is just telling you that those RPMs exist on your system, although I haven't reread the rpm info file to check.
 
Old 06-08-2006, 05:53 PM   #5
n926bb
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
PTrenholme, I have a similar set up I have a separate partition where I created local depositories for the different web sites (hi speed internet is not available where I live}. The query is "yum list" which I pipe to a file. I copy the file to "open office write", where I re-format it into a table. The first column of the table is the name or the rpn, the second is the version, the third shows whether it is installed or resides in a repository. The first column of the file is copied to a text file, which is queried with "uniq -cid /your textfile /yourdestinationfile".
a sample of this last file is:

2 evolution.i386
2 evolution-webcal.i386
2 gnome-panel.i386
4 gpg-pubkey.None
2 kernel.i686
4 openoffice.org-core.i386
2 planner.i386
2 system-config-date.noarch
2 xmms.i386
2 xsane-gimp.i386
4 yelp.i386
2 yum.noarch

The numbers refer to how many times a given package is installed. Executing "rpm -q packagename" will show the different installations for the package.

Manny
 
Old 06-11-2006, 02:51 PM   #6
n926bb
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Trenholme, your script test for equality of entries. The output from rpm -qa will not have duplicate entries, it will show the same packages name but different version number. This makes x == $0 false every time. Part or the rpm -qa follows:


ethtool-3-1.2.1
evince-0.5.1-3
evolution-2.6.2-1.fc5.3
evolution-2.6.2-1.fc5.5
evolution-data-server-1.6.2-1.fc5.1
evolution-webcal-2.4.1-3.2
evolution-webcal-2.4.1-3.4
expat-1.95.8-8.2
expat-devel-1.95.8-8.2
faac-1.24-5.lvn5

I removed all duplicate installs except the kernels and the gpg-pubkey.
The box shows no problems. I will keep an eye on this.

Thanks for your help,

Manny
 
  


Reply



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
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
how to upgrade installed version ramaswamyps Mandriva 1 03-05-2006 08:35 PM
What OS/Version is Installed? joelhop Linux - Newbie 2 12-28-2005 01:50 PM
dist-upgrade leaves me unable to start X shinyblue Debian 14 11-16-2005 04:47 AM
debian version installed dukeinlondon Debian 2 12-29-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:33 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
Open Source Consulting | Domain Registration