Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 16:36:01 -0400
From:      "Michael W. Lucas" <mwlucas@michaelwlucas.com>
To:        pkg@freebsd.org
Subject:   disabling repo problem
Message-ID:  <20170315203601.GA73501@mail.michaelwlucas.com>

next in thread | raw e-mail | index | archive | help
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@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170315203601.GA73501>