Re: Difference between rpm -i and rpm -U ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Thurman wrote:
> 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?

It will install the package in addition to the old one.  This is
what's done with kernels, for example.

> I assume -U looks for older packages, removes it if found,
> and then installs the newer package?

Correct.  If there was no old package, it will just go ahead and
install the new package.

There's also the --freshen (-F) option.  That works like --upgrade,
but it will only install packages that have another version already
installed.

> I just want to make sure that I do no end up with filesystem
> bloat choosing the wrong arguments.

I've gotten to know rpm well over the years (as I am sure many here
have), but with the exception of packages I've built here that I wish
to test before adding them to my local yum repo, I prefer to use yum
for package management.

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
If laws worked, there would be no crime.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkQpY98mGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1oy0QCdHMlzhhLTo5uQjZDTLBRe1aKqU1IAnRYSQVE0
1PrT21kk+HBUvw3oXgRn
=Y7pB
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux