Date: Wed, 15 Apr 2026 18:45:53 -0700 From: Mark Millard <marklmi@yahoo.com> To: freebsd-pkgbase@freebsd.org, freebsd-pkg@freebsd.org Subject: pkg 2.7.3: "pkg update -rFreeBSD-base" still reports "No repositories are enabled." instead of just updating FreeBSD-base when FreeBSD-base is "enabled: no" Message-ID: <8cb86f2c-b53e-4ec3-98ba-810a5c21377f@yahoo.com>
index | next in thread | raw e-mail
>From my https://github.com/freebsd/pkg/issues/2643 submittal: # pkg update -rFreeBSD-base No repositories are enabled. # pkg-static update -rFreeBSD-base No repositories are enabled. For reference: # pkg -v 2.7.3 # pkg-static -v 2.7.3 # head /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf ==> /etc/pkg/FreeBSD.conf <== # # To disable a repository, instead of modifying or removing this file, # create or edit /usr/local/etc/pkg/repos/FreeBSD.conf, 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 # # Note that the FreeBSD-base repository is disabled by default. # ==> /usr/local/etc/pkg/repos/FreeBSD.conf <== FreeBSD-base: { enabled: no } FreeBSD-ports: { enabled: no } FreeBSD-ports-kmods: { enabled: no } # man pkg-update PKG-UPDATE(8) FreeBSD System Manager's Manual PKG-UPDATE(8) NAME pkg update – update the local catalogues of the enabled package repositories SYNOPSIS pkg update [-fq] [-r reponame ...] pkg update [--{force,quiet}] [--repository reponame ...] . . . OPTIONS The following options are supported by pkg update: . . . -r reponame, --repository reponame Download the catalogue for the named repository only. This option can be specified multiple times to update several repositories. This will update only the named repositories, irrespective of the configured “enabled” status from repo.conf. . . . Note: All /usr/local/etc/pkg/repos/* have all the repositories with "enabled: no": configured for there being no defaultrepository. -- === Mark Millard marklmi at yahoo.comhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb86f2c-b53e-4ec3-98ba-810a5c21377f>
