LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-24-2004, 12:45 AM   #1
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Question Mandy 9.2 - Upgrading only installed packages!


Hi there!!!

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.
 
Old 05-24-2004, 12:06 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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.
 
Old 05-24-2004, 12:16 PM   #3
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
You need to do rpm -F instead of rpm -U to do what you are trying to accomplish.
 
Old 05-24-2004, 12:27 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 65
Thanks quatsch and doug_s!

I will try them out, really good tips by the way and I did not know any of those

thanks again!
 
  


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
packages not upgrading with apt bearwood Linux - Software 4 04-06-2005 04:39 AM
upgrading packages paulr1984 Linux - Software 6 03-23-2005 03:42 PM
Upgrading packages linuxhippy Slackware 2 03-21-2005 06:18 PM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 01:17 AM
upgrading of packages in slack Skunk_Face Slackware 6 02-19-2004 01:00 PM

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

All times are GMT -5. The time now is 08:03 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