/etc/pkg/FreeBSD.conf and /usr/local/etc/pkg/FreeBSD.conf (not repo names)

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Sat, 23 Aug 2025 07:13:47 UTC
<https://wiki.freebsd.org/Releng/15.0ISSUES#assigned>


> Add "FreeBSD-base" (or maybe "FreeBSD-src") repository to 
> /etc/pkg/FreeBSD.conf (cperciva)
>

hier(7) descriptions of /etc/ and /usr/local/ are thought-provoking. 
Respectively:

"base system configuration files and scripts; see intro(5)"

"local executables, libraries, etc, installed by pkg(7) or ports(7)"

Colin's base 29f076ae0cb5 was my precedent for multiple repos in a 
single file,

/etc/pkg/FreeBSD.conf

As the local stuff of pkg(8) is installed (bootstrapped) by pkg(7), is 
the _local_ configuration file a more logical place to specify the 
FreeBSD-base and FreeBSD-kmods repos?

/usr/local/etc/pkg/FreeBSD.conf

----

/etc/pkg/ is documented in hier(7), however it's quirky. pkg(8) is not 
part of base.

<https://man.freebsd.org/cgi/man.cgi?query=hier&sektion=7&manpath=freebsd-current>

<https://man.freebsd.org/cgi/man.cgi?query=intro&sektion=5&manpath=freebsd-current>

<https://github.com/freebsd/freebsd-src/commit/29f076ae0cb536d1e891d3375edf28f1bc82df79