Re: Switching pkg from quarterly to latest
Dag-Erling Smørgrav <[email protected]> Mon, 25 May 2026 09:50:07 +0200
| Newsgroups | gmane.os.freebsd.questions |
|---|---|
| Message-ID | <[email protected]> |
"Bobb Shires" <[email protected]> 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 - [email protected]