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

Re: behavior of rpm --replacepkgs



Skahan, Vince wrote:
> I'm cooking up a custom installer/updater that is
> intended to:
>  - add rpms needing adding
>  - update rpms needing updating
>  - do nothing to rpms already present
>
> Doing "rpm -Uvh --replacepkgs *.rpm" is very close to what I'm looking
> for in terms of behavior, except it actually reinstalls rpms that are in
> the *.rpm list that are already present on the system.  I just want it to
> skip rpms that don't need updating (ala Freshen) while still being
> smart enough to install new stuff that's not on disk yet.

I'm must be missing something obvious here... leave off the
--replacepkgs, and they won't be reinstalled, i.e.

rpm -Uvh *.rpm

will update where necessary, and install where necessary.


Cheers,

Phil





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