Re: git: 8e0b1a1c03a3 - main - pkg: Add FreeBSD-base to /etc/pkg/FreeBSD.conf
Date: Sat, 15 Nov 2025 15:46:58 UTC
On 11/15/25 07:34, Mark Millard wrote:
> Colin Percival <cperciva_at_FreeBSD.org> wrote on
> Date: Sat, 15 Nov 2025 07:58:59 UTC :
>> Note that this repository is disabled by default, but can still be used
>> by explicitly specifying it, e.g. "pkg upgrade -r FreeBSD-base".
>
> I and others reported that when FreeBSD-base is not enabled,
> "pkg upgrade -r FreeBSD-base" does not do the pkg update
> part of the activity (as if a -U was present if it was an
> enabled repository). This prevents "pkg upgrade -r FreeBSD-base"
> doing any upgrade that would depend on the pkg update results.
>
> In other words, only enabled repositories get the
> implicit pkg update activity, even when the -r REPONAME
> is supplied.
>
> I've been manually initially doing the sequence:
>
> Edit to have FreeBSD-base enabled
> pkg-static update -rFreeBSD-base
> Edit to have FreeBSD-base disabled
I'll have to test further, but it looked to me like
# pkg update -r FreeBSD-base
# pkg upgrade -r FreeBSD-base
worked? Maybe I had the repository enabled by accident when I was testing.
If necessary we'll have bsdinstall put "FreeBSD-base: { enabled: yes }"
into /usr/local/etc/pkg/repos/FreeBSD-base.conf when doing a pkgbase install.
--
Colin Percival
FreeBSD Release Engineering Lead & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid