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

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 23 Aug 2025 13:38:53 UTC
Graham Perrin <grahamperrin_at_gmail.com> wrote on
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.

The bootstrap pkg is part of base and likely uses the
/etc/pkg/FreeBSD.conf for at least some contexts of
use --and should not require access to /usr/local/etc/
(which may not exist or be mounted at the time).

In other words: overall, the FreeBSD pkg infrastructure
is split across both base and ports. Its file placement
reflects that split.

At least that is my understanding of the context.

> <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

===
Mark Millard
marklmi at yahoo.com