LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-14-2004, 08:19 AM   #1
MSwal2846
LQ Newbie
 
Registered: Jan 2004
Location: Raleigh
Distribution: Red Hat Enterprise 5
Posts: 27

Rep: Reputation: 15
Question RPM -U versus -F - which should be used


I am running RH9.0 and am going to upgrade KDE from 3.1 to 3.2.1. Through iterative 'rpm -Uvh *.rpm --test' commands I resolved all of the rpm dependencies so that when I run this command now it appears that all will run. However, I've seen some posts where people have specified -Uvh and some posts where some have run -Fvh. In reading the 'man rpm', it appears that either will work in this circumstance, but I thought I'd tap this broader audience to get your opinions.

So, which should I use?

Thanks!
Mark
 
Old 03-14-2004, 08:40 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you shoudlnt really use F
dont u mean ivh ?

ivh = install
Uvh = install / upgrade.
 
Old 03-14-2004, 01:15 PM   #3
MSwal2846
LQ Newbie
 
Registered: Jan 2004
Location: Raleigh
Distribution: Red Hat Enterprise 5
Posts: 27

Original Poster
Rep: Reputation: 15
F means Freshen - This will upgrade packages, but only if an earlier version currently exists.

U means Upgrade, as you indicate - This upgrades or installs the package currently installed to a newer version. This is the same as install, except all other version(s) of the package are removed after the new package is installed.

I think there is a very sutle difference and I'm not sure it matters which I should use...
 
Old 03-14-2004, 02:36 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
To make it clearer
-F upgrades packages, but if an older version of the package(s) does not already exist on your system it won't install it, while -U will.
 
Old 03-14-2004, 08:32 PM   #5
MSwal2846
LQ Newbie
 
Registered: Jan 2004
Location: Raleigh
Distribution: Red Hat Enterprise 5
Posts: 27

Original Poster
Rep: Reputation: 15
Well, I decided to bite the bullet and I executed the upgrade with the -U option. Everything seemed to go ok and it seems that everything that was running is still.
 
Old 03-15-2004, 01:09 AM   #6
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
-F reads force to me, which is pretty much trying to go against the point of using rpm's.
 
Old 03-15-2004, 01:21 AM   #7
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Checkout the rpm man page. MSwal2846's description and Demonbane's clarification nailed it.
 
  


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
suse 8.1 versus 8.0 vera Linux - Networking 1 06-08-2004 11:00 AM
binaries versus RPM durvasa Linux - Newbie 6 05-19-2004 03:27 PM
Qt versus GTK hpcpg Programming 6 01-12-2004 04:43 PM
Mandrake 9.0 versus 9.1 Captain Kernel Linux - Newbie 3 11-01-2003 06:50 AM
rpm versus other ways to install rsarson Linux - Software 7 05-14-2003 06:05 PM


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