On Thu, 2013-05-23 at 13:52 +0200, Simone Caronni wrote:
On 23 May 2013 13:47, Jan Zelený <jzeleny(a)redhat.com> wrote:
> May I ask what is the use case for this? I'm not sure why would you need to
> deal with individual files instead of the entire packages.
Maybe to reinstall one default config file out of a package that contains
some? I found it useful.
Example:
I fiddle around with a new Nagios installation, then something stops
working. I'm pretty sure it is some modifications in /etc/nagios/nagios.cfg
but I cannot track it down.
As an example I could do:
mv /etc/nagios/nagios.cfg /etc/nagios/nagios.cfg.mine
yum reinstall nagios --onlyfile /etc/nagios/nagios.cfg
How is this functionally different from "yum reinstall nagios" ?
Yes, yum/rpm will currently replace files with identical copies but
functionally the extra copies are "just wasting reinstall time".