[svlug] redhat rpm upgrades

Drew Bertola drew at drewb.com
Thu Feb 15 13:26:07 PST 2001


# man rpm (snipped)

            rpm -i [install-options] <package_file>+

       This installs a new package.  The general form of  an  rpm
       upgrade command is

            rpm -U [install-options] <package_file>+

       This  upgrades or installs the package currently installed
       to the version in the  new  RPM.   This  is  the  same  as
       install,  except  all  other  version  of  the package are
       removed from the system.

            rpm [-F|--freshen] [install-options] <package_file>+

       This will upgrade packages, but only if an earlier version
       currently exists.



In other words, -i works only when the package IS NOT installed.  -F
works only when the package IS installed.  -U works in either case.



Mike O'Neill writes:
> If a package already exists (i.e. installed), is there ever any reason to
> use -Uvh instead of -Fvh when upgrading?  I usually use -Fvh but I notice
> that the redhat website occasionally recommends using -Uvh.  -mike
> 
> 
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/mailman/listinfo/svlug

-- 
Drew Bertola  | Send a text message to my pager or cell ... 
              |   http://jpager.com/Drew





More information about the svlug mailing list