Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2025 11:40:27 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: /etc/pkg/FreeBSD.conf and /usr/local/etc/pkg/FreeBSD.conf (not repo names)
Message-ID:  <93fa8633-3497-46db-9821-d5e57fd45ca8@gmail.com>
In-Reply-To: <20250823182819.321d4dbca45e56f7c1f0a7aa@dec.sakura.ne.jp>
References:  <5dc99111-3977-4638-8151-1f69fa819e08@gmail.com> <20250823182819.321d4dbca45e56f7c1f0a7aa@dec.sakura.ne.jp>

index | next in thread | previous in thread | raw e-mail

On 23/08/2025 10:28, Tomoaki AOKI wrote:
> … /etc/pkg is described as "default configuration for the package
> manager, pkg(8)".


Indeed, and pkg(8) is _not_ base, so what's described is not consistent 
with /etc/ for base system software configuration files.

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

A single repo e.g. FreeBSD-ports in /etc/pkg/FreeBSD.conf is used by pkg 
(7, not 8) for bootstrap.

Then:

- /etc/pkg.conf does not exist

- /usr/local/etc/pkg.conf is explicitly the system-wide configuration 
file for pkg(8).

So, I might expect /usr/local/etc/pkg/repos/FreeBSD.conf to be the 
system-wide FreeBSD repository configuration file for pkg(8).

<https://man.freebsd.org/cgi/man.cgi?query=pkg.conf&sektion=5&manpath=freebsd-ports#OPTIONS>; 
REPOS_DIR does have the default list of two directories to search.

When I first saw pkgbasify write a FreeBSD-base configuration to 
/usr/local/etc/pkg/repos/ I thought that the path was, somehow, unexpected.

After looking at intro(5) and hier(7), /usr/local/etc/pkg/repos/ seems 
proper (a change of mind).

<https://reviews.freebsd.org/D51594>; for pkgbasify in base – without 
pkg(8) in base – will probably change my mind, again.



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?93fa8633-3497-46db-9821-d5e57fd45ca8>