disabling repo problem

Michael W. Lucas mwlucas at michaelwlucas.com
Wed Mar 15 20:36:10 UTC 2017


Hi,

Running pkg 1.10.0 on the March -current snapshot:

FreeBSD storm 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r314495: Wed Mar  1 18:14:24 UTC 2017     root at releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

I'm attempting to disable the default repo without editing
/etc/pkg/FreeBSD.conf.

pkg.conf contains:

grep -v ^# pkg.conf


DEFAULT_ALWAYS_YES = true;
REPOS_DIR [
    "/etc/pkg/",
    "/usr/local/etc/pkg/repos/",
]

(and the long list of aliases at the end)

So let's make an override file:

# cat /usr/local/pkg/repos/FreeBSD.conf
FreeBSD: { enabled: NO }

(Cut and paste from pkg.conf.)

So, the default repo should be gone, right?

# pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (2 candidates): 100%
Processing candidates (2 candidates): 100%
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        ca_root_nss: 3.29.1 -> 3.29.3

Number of packages to be upgraded: 1

334 KiB to be downloaded.

Proceed with this action? [Y/n]: ^C

Did I do something wrong? Does the old package on this box prevent me
from disabling the repo? Or do most people just edit
/etc/pkg/FreeBSD.conf and this is a bug?

Thanks,
==ml


-- 
Michael W. Lucas    Twitter @mwlauthor 
nonfiction: https://www.michaelwlucas.com/
fiction: https://www.michaelwarrenlucas.com/
blog: http://blather.michaelwlucas.com/


More information about the freebsd-pkg mailing list