rpmprune - Remove unneeded files from a list of RPM package files
With rpm version 3 and newer, multiple files given on the command-line for an install, uninstall or update command are treated as a single transaction. If any of the files in the set cannot be acted upon, the whole transaction must be rejected. This is inconvenient for casual package upgrades where a directory may have many rpm files, some of which are already installed. A command of:
rpm -Uhv *.rpm
would fail, as one (or more) files in the set is already installed. This
can lead to careless use of options such as "--force".
In the simplest usage, this tool eases that situation by allowing:
rpm -Uhv `rpmprune *.rpm`
When the back-ticks are evaluated, rpmprune has only echoed the names of
those files that are either newer than their installed counterparts, or are
not installed at all.
Without any arguments, rpmprune acts as if the following were the command line:
rpmprune --newer --noolder --noequal --uninst ...
The "--invert" option is applied last, after all others have been processed.
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |