|
pkg list [-n|-a] are currently used in the pkg provider to find latest/available packages.
This method is imprecise; current logic later uses `pkg update -nv name` to determine if a package can be installed.
This logic can be reduced to `pkg update -nv name[@should]` Additionally, --parsable=0 can be added to return json formatted results.
pkg update also triggers a metadata refresh which also solves the workaround of adding a manual refresh PUP-7745.
|