Re: [Bug 291501] Users should not be advised to overwrite /usr/local/etc/pkg/repos/FreeBSD.conf

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sun, 28 Jun 2026 23:49:06 UTC
On 6/28/26 16:35, vermaden wrote:
> Hi.
> 
>> Users should not be advised to overwrite /usr/local/etc/pkg/repos/FreeBSD.conf
> 
> The stock  'Base System' config is at /etc/pkg/FreeBSD.conf ... that one should not be modified (officially).
> 
> The /usr/local/etc/pkg/repos/FreeBSD.conf is 'for' modifications.
> 
> Just modify bsdinstall(8) or 'default' /etc/pkg/FreeBSD.conf config to be like that:
> 
> | FreeBSD-base: {
> |   url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
> |   mirror_type: "srv",
> |   signature_type: "fingerprints",
> |   fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
> |   enabled: yes
> | }
> 
> Because current situation is very strange where You have this by default after installation:
> 
> | FreeBSD-base: {
> |   url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
> |   mirror_type: "srv",
> |   signature_type: "fingerprints",
> |   fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}",
> |   enabled: no
> | }
> 
> ... and this in /usr/local/etc/pkg/repos/FreeBSD.conf file:
> 
> | FreeBSD-base: { enabled: yes }
> 
> What is the point of this split?

Remember that prior to some 2.7.* of pkg the -rREPONAME notation did not
work as documented as far as controlling which which repositories are
enabled for the specific command instance, including update, upgrade,
install, and more not respecting the command line.

Last I knew, quarterly was still at 2.6.2 of pkg or something like that.

15.0-RELEASE had FreeBSD-base deliberately disabled by default in
/etc/pkg/FreeBSD.conf . 15.1-RELEASE also can not depend on pkg 2.7.5 or
later being in use.

I wonder if quarterly should get pkg upgrade, if it has not yet done so.

> 
> Regards,
> vermaden
> 
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com