pkg
pkg copied to clipboard
pkg-upgrade(8): consider listing candidates when there's debug output with pkg(8) option -d
Please, is it feasible to present a list of candidates?
If not a list: maybe something more verbose than the count (in the example below, 4).
% pkg -d upgrade -r poudriere -n
DBG(1)[74170]> pkg initialized
Checking for upgrades (4 candidates): 100%
Processing candidates (4 candidates): 100%
DBG(1)[74170]> Binary> loading //usr/local/poudriere/data/packages/main-default/All/meson-0.60.2.pkg
Checking integrity...DBG(1)[74170]> check integrity for 1 items added
done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
meson: 0.60.1_1 -> 0.60.2 [poudriere]
Number of packages to be upgraded: 1
%
Just a list of candidates.
(I should not expect verbosity to include reasons for whittling down e.g. from four to one.)
Thanks
https://github.com/freebsd/pkg/commit/c1633240fbca76121afdfc99268505f15ef4480b
https://github.com/freebsd/pkg/commit/a20caba819a19edb726a425a4d7bc7a9fd681aaa>
https://github.com/freebsd/pkg/commit/816c5e4cb7c8a7c7906c35587f38a4349ad96e62
https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&manpath=Ports#OPTIONS option -d
https://www.freebsd.org/cgi/man.cgi?query=pkg-upgrade&sektion=8&manpath=Ports#DESCRIPTION describes candidates (thanks), however I did some digging around my example above, couldn't tell/guess which three of the four candidates were ruled out.
Through experimentation (not from the manual page) I discovered that -d can be specified more than once.
root@mowa219-gjp4-8570p-freebsd:~ # pkg -ddd upgrade -n
DBG(1)[6495]> pkg initialized
Updating FreeBSD repository catalogue...
DBG(1)[6495]> PkgRepo: verifying update for FreeBSD
DBG(1)[6495]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite'
DBG(1)[6495]> Request to fetch pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/meta.conf
DBG(1)[6495]> opening libfetch fetcher
DBG(1)[6495]> Fetch > libfetch: connecting
DBG(1)[6495]> Fetch: fetching from: http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/meta.conf with opts "i"
DBG(1)[6495]> Request to fetch pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/packagesite.pkg
DBG(1)[6495]> opening libfetch fetcher
DBG(1)[6495]> Fetch > libfetch: connecting
DBG(1)[6495]> Fetch: fetching from: http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/packagesite.pkg with opts "i"
DBG(1)[6495]> Request to fetch pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/packagesite.txz
DBG(1)[6495]> opening libfetch fetcher
DBG(1)[6495]> Fetch > libfetch: connecting
DBG(1)[6495]> Fetch: fetching from: http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/packagesite.txz with opts "i"
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
DBG(1)[6495]> PkgRepo: verifying update for poudriere
DBG(1)[6495]> Pkgrepo, begin update of '/var/db/pkg/repo-poudriere.sqlite'
DBG(1)[6495]> Request to fetch file:///usr/local/poudriere/data/packages/main-default/meta.conf
DBG(1)[6495]> Fetch: fetcher chosen: file
DBG(1)[6495]> Request to fetch file:///usr/local/poudriere/data/packages/main-default/packagesite.pkg
DBG(1)[6495]> Fetch: fetcher chosen: file
DBG(1)[6495]> Request to fetch file:///usr/local/poudriere/data/packages/main-default/packagesite.txz
DBG(1)[6495]> Fetch: fetcher chosen: file
poudriere repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 100%
DBG(3)[6495]> Pkg: add a new dependency origin: graphics/gpu-firmware-kmod, name: gpu-firmware-kmod
DBG(2)[6495]> Pkg> adding options: DEBUG = on
DBG(3)[6495]> Pkg: add a new dependency origin: graphics/gpu-firmware-kmod, name: gpu-firmware-kmod
DBG(2)[6495]> Pkg> adding options: DEBUG = off
DBG(3)[6495]> Pkg: add a new dependency origin: graphics/gpu-firmware-kmod, name: gpu-firmware-kmod
DBG(2)[6495]> Pkg> adding options: DEBUG = on
DBG(3)[6495]> Pkg: add a new dependency origin: graphics/gpu-firmware-kmod, name: gpu-firmware-kmod
DBG(2)[6495]> Pkg> adding options: DEBUG = off
DBG(3)[6495]> Pkg: add a new dependency origin: graphics/gpu-firmware-kmod, name: gpu-firmware-kmod
DBG(2)[6495]> Pkg> adding options: DEBUG = on
DBG(2)[6495]> non-automatic package with pattern drm-devel-kmod has not been found in remote repo
Processing candidates (1 candidates): 100%
DBG(1)[6495]> problem has no requests
Checking integrity...DBG(1)[6495]> check integrity for 0 items added
done (0 conflicting)
Your packages are up to date.
root@mowa219-gjp4-8570p-freebsd:~ # pkg lock -l
Currently locked packages:
drm-devel-kmod-5.7.19.g20220223
root@mowa219-gjp4-8570p-freebsd:~ #
Through experimentation (not from the manual page) I discovered that
-dcan be specified more than once.
Cross-reference: FreeBSD bug 266581 – ports-mgmt/pkg: pkg(8) should mention --debug verbosity increases with -dd, -ddd and -dddd