Software Management call for RFEs

Ralf Corsepius rc040203 at freenet.de
Sat May 25 16:58:05 UTC 2013


On 05/24/2013 09:26 AM, Michael Scherer wrote:
> 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 <james at fedoraproject.org
>>> <mailto:james at 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 ?

c.f. what I wrote in 
http://lists.fedoraproject.org/pipermail/devel/2013-May/183321.html

This works in most cases (I haven't seen it fails in any real world 
case, it's imaginable it fails in some stateful packages).

Ralf



More information about the devel mailing list