Date: Thu, 16 Oct 2025 21:59:01 -0700 From: Mark Millard <marklmi@yahoo.com> To: FreeBSD-pkgbase@freebsd.org, FreeBSD-pkg@freebsd.org, Lexi Winter <ivy@freebsd.org>, Baptiste Daroussin <bapt@FreeBSD.org> Cc: Colin Percival <cperciva@tarsnap.com> Subject: A repository enabled vs. disabled vs. missing oddity Message-ID: <6B06E72B-D35F-49F9-BAC4-5240896C2ADA@yahoo.com> References: <6B06E72B-D35F-49F9-BAC4-5240896C2ADA.ref@yahoo.com>
index | next in thread | previous in thread | raw e-mail
Note: The context does not have anything installed that is
from FreeBSD-ports-kmods . The below is via a chroot
on main 16 to media with a stable/15 installation.
case 0: FreeBSD-ports-kmods enabled (case 1 will be: disabled)
# cat /etc/pkg/FreeBSD.conf
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
# echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#
FreeBSD-base: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: no
}
FreeBSD-ports: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD-ports-kmods: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
# cat /usr/local//etc/pkg/repos/FreeBSD.conf
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
# echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#
#FreeBSD-base: { enabled: yes }
#FreeBSD-ports: { enabled: no }
#FreeBSD-ports-kmods: { enabled: no }
# pkg repos
FreeBSD-base: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_latest",
enabled : no,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-ports: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-ports-kmods: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
(Which looks normal to me. As a cross check . . .)
# pkg version -r FreeBSD-ports-kmods
Updating FreeBSD-ports-kmods repository catalogue...
Fetching data.pkg: 100% 29 KiB 29.9kB/s 00:01
Processing entries: 100%
FreeBSD-ports-kmods repository update completed. 200 packages processed.
FreeBSD-ports-kmods is up to date.
FreeBSD-acct-15.snap20251011015136 ?
. . .
ztop-0.3.0_6 ?
That also looks normal to me.
case 1: FreeBSD-ports-kmods disabled
/etc/pkg/FreeBSD.conf is unchanged.
# cat /usr/local//etc/pkg/repos/FreeBSD.conf
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
# mkdir -p /usr/local/etc/pkg/repos
# echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
# echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#
#FreeBSD-base: { enabled: yes }
#FreeBSD-ports: { enabled: no }
FreeBSD-ports-kmods: { enabled: no }
# pkg repos
FreeBSD-base: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_latest",
enabled : no,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-ports: {
url : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
(So FreeBSD-ports-kmods is missing instead of being
listed as "enabled: no". As a cross check . . .)
# pkg version -r FreeBSD-ports-kmods
No repositories are enabled.
Such does not look to be expected to me.
For reference:
# uname -apKU
FreeBSD 7950X3D-ZFS 16.0-CURRENT FreeBSD 16.0-CURRENT main-n281155-86d17239233e GENERIC-NODEBUG amd64 amd64 1600001 1500500
===
Mark Millard
marklmi at yahoo.com
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6B06E72B-D35F-49F9-BAC4-5240896C2ADA>
