Re: behavior of rpm --replacepkgs

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

 



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





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux