Difference between rpm -i and rpm -U ?
Dan
grinnz at gmail.com
Tue Mar 28 18:30:19 UTC 2006
Dan Thurman wrote:
> On Tue, 2006-03-28 at 11:27 -0500, Todd Zullinger wrote:
>
>> -----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.
>>
>
> Bummer. What do I do if I already went ahead and used the -i
> option- now what do I have to do to remove the bloat?
>
>
>> 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-----
>>
>>
>
>
rpm -e it, using the entire version number of the one you want to
uninstall. If that doesn't work, and there aren't dependency issues, you
can rpm -e --allmatches the package name, and then reinstall the one you
want.
-Dan
More information about the fedora-list
mailing list