Date: Mon, 25 May 2026 09:50:07 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: "Bobb Shires" <bobb@fastmail.com> Cc: "Steve Rikli" <sr@genyosha.net>, freebsd-questions@freebsd.org, ziaee@freebsd.org Subject: Re: Switching pkg from quarterly to latest Message-ID: <861pf02aj4.fsf@ltc.des.dev> In-Reply-To: <b54ed3e6-d83a-4a3b-8224-e7e74bcfd0cd@app.fastmail.com> (Bobb Shires's message of "Sun, 24 May 2026 23:46:23 -0400") References: <7cb31e23-dfd4-4009-b993-87f71d238ea3@app.fastmail.com> <ahPAheT7WoZQTLXH@dragon.home.genyosha.net> <b54ed3e6-d83a-4a3b-8224-e7e74bcfd0cd@app.fastmail.com>
index | next in thread | previous in thread | raw e-mail
"Bobb Shires" <bobb@fastmail.com> writes:
> That was it, thanks Steve!
> Contents of my /usr/local/etc/pkg/repos/FreeBSD.conf was the single line
> FreeBSD-ports: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest" }
This would have worked on FreeBSD 15. Whoever updated that section of
the handbook forgot that FreeBSD 14 still exists (and FreeBSD 13 still
existed until a few weeks ago).
I also strongly disagree with the idea of just giving a command for the
user to run without explaining what it does.
The pkg utility reads repository definitions from /etc/pkg first, then
/usr/local/etc/pkg/repos. If it encounters a repository definition with
the same name as an earlier one, the two definitions are merged:
variables present in the new definition override those present in the
old one, but variables found only in the old definition are preserved.
What the handbook tells you to do is provide a partial definition for a
package repository named “FreeBSD-ports”. This works if you already
have one, but if you don't, you end up with a new repository with
incomplete information.
> I've replaced it with what you provided and all appears well -
> repositories updated without complaint.
All is not well. You now have both quarterly and latest enabled
simultaneously under different names. What you actually need to do is
override the URL of the repository definition you already have:
FreeBSD: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest" }
The repository was renamed from “FreeBSD” to “FreeBSD-ports” in FreeBSD
15 to better distinguish it from the pkgbase repository, which is named
“FreeBSD-base”.
DES
--
Dag-Erling Smørgrav - des@FreeBSD.org
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861pf02aj4.fsf>
