Re: incantation for etcupdate to just blow away all old things?

From: Steve Kargl <kargls_at_comcast.net>
Date: Wed, 17 Sep 2025 00:56:58 UTC
On 9/16/25 16:39, Dan Mahoney (Ports) wrote:
> 
> 
>> On Sep 16, 2025, at 4:35 PM, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
>>
>> On Tue, Sep 16, 2025 at 04:11:17PM -0700, Dan Mahoney (Ports) wrote:
>>> Hey there folks,
>>>
>>> In doing a bunch of updates on my 15 VM recently to get around some of the recent breakages, I haven't been fully religious about running etcupdate every time, and it's now complaining that I have some results from a prior merge.
>>>
>>> The man page is *long*, and we have puppet manifests to alter the few things we care about from a stock system (mostly some sshd stuff).
>>>
>>> Is there a simple etcupdate command that says "I don't care about fancy 3-way merges and diffs, please just blow my /etc back to stock and I'll correct it with puppet?"
>>>
>>
>> etcupdate revert file
> 
> that seems to be for a single file:
> 
> "     The revert mode is used to restore the stock versions of files.  In this
>       mode, etcupdate installs the stock version of requested files.  This mode
>       cannot be used to restore directories, only individual files.
> "
> 
>   is there a mechanism for *all* of /etc?

Never tried it, but you may be about to do

find /etc -type f | xargs etcupdate revert

-- 
steve