Re: behavior of rpm --replacepkgs

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

 



True,

but if you have a directory full of RPMS, some that may be installed on your system, and some that aren't, Uvh will install everything.

James

Philip Rowlands wrote:
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



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list






[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