FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
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.
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:
The numbers refer to how many times a given package is installed. Executing "rpm -q packagename" will show the different installations for the package.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.