When installing packages from a disabled repo with pkg install -r, the manpage suggests it should not respect the "active" status of the repo ('irrespective of the configured "active" status from repo.conf'), meaning it will install from disabled repos, however that is not the case:
> # grep enabled /usr/local/etc/pkg/repos/FreeBSD.conf
> enabled: no
> # pkg install -r FreeBSD openjdk
> No repositories are enabled.
Enabling the repo allows installation from it with -r.
# pkg info pkg
Name : pkg
Version : 1.8.7_1
Installed on : Thu Aug 4 13:55:40 2016 CEST
Origin : ports-mgmt/pkg
Architecture : freebsd:11:x86:64
Prefix : /usr/local
Categories : ports-mgmt
Licenses : BSD2CLAUSE
Maintainer : pkg@FreeBSD.org
WWW : http://wiki.freebsd.org/pkgng
Comment : Package manager
Shared Libs provided:
repo_type : binary
repository : Poudriere
Flat size : 10.9MiB
Package management tool
Looking at the source code, it would appear that the manpage is wrong. For example, given repo is explicitly checked if enabled:
* install falls through update:
Can we get some feedback here? If this is the intended behavior, then the solution is to correct the manpage.
I'd like to bump this bug. It is pretty annoying in my use-case.
Any progress on this?
CC'ing bapt@ specifically, though I reckon he probably reads -pkg@ as well