Difference between rpm -i and rpm -U ?
Jim Cornette
fc-cornette at insight.rr.com
Tue Mar 28 19:44:27 UTC 2006
Dan Thurman wrote:
> Folks,
>
> What is the difference between rpm -i and rpm -U ?
>
> If I have a bunch of rpm files and use -i, will it remove
> previous versions of packages or will it retain older packages
> and install the newer package on top?
>
> I assume -U looks for older packages, removes it if found,
> and then installs the newer package?
>
> I just want to make sure that I do no end up with filesystem
> bloat choosing the wrong arguments.
>
> Thanks!
> Dan
>
Rpm -i is used mainly for installing kernel related packages. Rpm -U
will install as well as upgrade a package. The option rpm F will only
freshen packages that you have installed on your system already.
-i for kernel
-U to install or upgrade
-F to only upgrade a package
Rpm is a great program and has very many handy features to keep your
system in the best order possible. I even corrected my system after
stupidly upgrading from a gnome-terminal via yum upgrade. (knew better)
--replacpkgs --replacfiles --justdb --allmatches -qaV are amongst the
features I use frequently.
Jim
--
Rarely do people communicate; they just take turns talking.
More information about the fedora-list
mailing list