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 pkg-1.8.7_1 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: libpkg.so.3 Annotations : repo_type : binary repository : Poudriere Flat size : 10.9MiB Description : Package management tool WWW: http://wiki.freebsd.org/pkgng
Looking at the source code, it would appear that the manpage is wrong. For example, given repo is explicitly checked if enabled: * update: https://github.com/freebsd/pkg/blob/master/src/update.c#L69 * install falls through update: https://github.com/freebsd/pkg/blob/master/src/install.c#L197 Can we get some feedback here? If this is the intended behavior, then the solution is to correct the manpage. Thanks.
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