Re: etcupdate usage

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Tue, 14 Oct 2025 11:26:06 UTC
Erwan David <erwan@rail.eu.org> writes:
> I do not understand how to use etcupdate.  [...]  Is it because src is
> not on the machine ?

If you didn't upgrade from source, you don't need etcupdate.

> I soon will upgrade another machine (with /usr/src this one), and I'd
> prefer to be sure to be able to use etcupdate on it
> (especially if I need to to a extract or build before upgrade)

If and only if upgrading your machine from source, run `etcupdate -B`
after `make installworld`.  This will update every file that isn't
conflicted and tell you of any that are, in which case you will have to
run `etcupdate resolve` to resolve the conflicts.

Once in a great while (the last time it happened was in 2020), `make
installworld` will fail due to a missing user or group.  In that case,
you need to run `etcupdate -p` (and possibly `etcupdate resolve -p`) to
update the user and group databases before retrying `make installworld`.
When doing so, you will still have to run `etcupdate -B` afterwards to
update everything else.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org