Re: git: 8e0b1a1c03a3 - main - pkg: Add FreeBSD-base to /etc/pkg/FreeBSD.conf
- In reply to: Colin Percival : "Re: git: 8e0b1a1c03a3 - main - pkg: Add FreeBSD-base to /etc/pkg/FreeBSD.conf"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Nov 2025 16:00:06 UTC
On Nov 15, 2025, at 07:46, Colin Percival <cperciva@freebsd.org> wrote:
> 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
Does not work when FreeBSD-base is disabled:
# pkg repos -e
main-aarch64-default: {
url : "file:///usr/local/poudriere/data/packages/main-aarch64-default",
enabled : yes,
priority : 0
}
# pkg update -r FreeBSD-base
Updating FreeBSD-base repository catalogue...
FreeBSD-base is up to date.
vs.:
# pkg repos -e
FreeBSD-base: {
url : "pkg+http://pkg.FreeBSD.org/FreeBSD:16:aarch64/base_latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
main-aarch64-default: {
url : "file:///usr/local/poudriere/data/packages/main-aarch64-default",
enabled : yes,
priority : 0
}
# pkg update -r FreeBSD-base
Updating FreeBSD-base repository catalogue...
Fetching data.pkg: 100% 79 KiB 81.2kB/s 00:01
Processing entries: 100%
FreeBSD-base repository update completed. 507 packages processed.
FreeBSD-base is up to date.
> # 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.
Looks like that will be needed.
===
Mark Millard
marklmi at yahoo.com