MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
I've downloaded a hole bunch of rpm's to update the system and I put them into a CD. I have like hundreds of rpms in that disk, but I want to upgrade only the packages that are installed... Say, I have gaim 0.70 installed, and in that disk I have a newer package, 0.77, so then upgrade. But that ONLY if I have a previous version installed. If no gaim is installed, then no gaim is upgraded.
Problem is, I was testing with "rpm -U" in a package which was not installed and it got installed...
All those updates rpm's are officials and are all in the same folder, so I need to run a command to upgrade all packages and leave the ones _not_ installed alone... something like "rpm -U *.rpm", but that would not work and would install all packages...
The reason for this is that I'll be upgrading my friend's computer and he has a very slow Internet connection and in that disk, I've a lot of packages not necessary to be installed, even big ones as gnome.
Any ideas about upgrading a mass of rpm's and leaving the ones not installed, well, not installed?
I hope I was clear enough, I suck asking questions...
Thanks in advance!
Last edited by Mega Man X; 05-24-2004 at 01:00 AM.
since you're using mandrake, use urpmi or rpmdrake.
You can add all the rpms on the CDs to the database (like the way it knows all the packages available on the installation CDs):
urpmi.addmedia --upgrade <name of choice> removable:/mnt/cdrom/rpm (or whatever the path is to the directory where the rpms are)
After this, you can do an upgrade of all installed packages with
urpmi --upgrade --auto-select
Take a look at the man pages for urpmi. It's a very useful tool.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.