is there a "right" pkg (kmods) repo for 14.3-STABLE or -CURRENT?

8 views
Skip to first unread message

Steve Rikli

unread,
Aug 2, 2025, 1:06:02 PM8/2/25
to FreeBSD-questions
Most of my servers run FreeBSD 14.3-STABLE, I also have one 15.0-CURRENT,
and another with 14.3-RELEASE.

For some time I have used "latest" for my pkg repo on these systems.
buildworld(?) for -STABLE and -CURRENT also seems to automatically
adjust /etc/pkg/FreeBSD.conf:

$ uname -r
14.3-STABLE
$ grep -A1 ^FreeBSD /etc/pkg/FreeBSD.conf
FreeBSD: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
--
FreeBSD-kmods: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest",

whereas my -RELEASE systems still use "quarterly" by default.

Since the introduction of FreeBSD-kmods repo I sometimes see the version
mismatch error from 'pkg update' or the weekly cron job, e.g.

$ sudo pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
Fetching data.pkg: 100% 29 KiB 30.2kB/s 00:01
Processing entries: 0%
Newer FreeBSD version for package utouch-kmod:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1403503
- running userland: 1403502
Ignore the mismatch and continue? [y/N]: y
...

I assume this is typically from FreeBSD-kmods, since I didn't see the
warning previously, and only when there is an updated -kmod package.

I'm aware of IGNORE_OSVERSION=yes but before setting that, I'm wondering
if there's a "native" repo to use for -STABLE or -CURRENT which avoids
the mismatch in the first place.

E.g. browsing https://pkg.freebsd.org/FreeBSD:14:amd64/ contents I see
kmods_latest[_23] and kmods_quarterly[_23] for -STABLE; I assume the
best match is a _latest*, but I haven't tried _2 or _3 so far. -CURRENT
appears to only have _latest, which is probably to be expected.

I suspect IGNORE_OSVERSION=yes is the only way to avoid the warning,
since pkg.conf(5) specifically mentions this; but I wanted to check if
this is still the best recommendation.

Thanks,
sr.

Graham Perrin

unread,
Aug 5, 2025, 2:54:59 PM8/5/25
to FreeBSD questions
On 02/08/2025 18:05, Steve Rikli wrote:

> … browsing https://pkg.freebsd.org/FreeBSD:14:amd64/ contents I see
> kmods_latest[_23] and kmods_quarterly[_23] for -STABLE; I assume the
> best match is a _latest*, but I haven't tried _2 or _3 so far. …

The three examples below may help. The first is for RELEASE, not STABLE.


<https://github.com/freebsd/freebsd-src/blob/releng/14.3/usr.sbin/pkg/FreeBSD.conf.quarterly>

kmods_quarterly_${VERSION_MINOR} will result in kmods_quarterly_3 for
14.3-RELEASE.


<https://github.com/freebsd/freebsd-src/blob/stable/14/usr.sbin/pkg/FreeBSD.conf.quarterly>

kmods_quarterly


<https://github.com/freebsd/freebsd-src/blob/stable/14/usr.sbin/pkg/FreeBSD.conf.latest>

kmods_latest


Reply all
Reply to author
Forward
0 new messages