Le vendredi 24 mai 2013 à 07:08 +0200, Ralf Corsepius a écrit :
> On 05/23/2013 06:05 PM, Simone Caronni wrote:
> > On 23 May 2013 17:38, James Antill <ja...@fedoraproject.org
> > <mailto:ja...@fedoraproject.org>> wrote:
> >
> >     On Thu, 2013-05-23 at 13:52 +0200, Simone Caronni wrote:
> >      > 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".
> >
> >
> > By doing "yum reinstall nagios" I don't have the the default config
> > files (i.e. nagios.cfg.rpmnew is not created). This happens only on
> > upgrades.
> 
> yum remove <pkg>
> yum install <pkg>
> 
> should do what you want (backups of modified config files).

But that's unfortunately not always convenient if you need to remove
dependent packages for "yum remove" ?
I guess yum-shell may help in that case ?

-- 
Michael Scherer

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to