You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
50338 1 S 0:00.01 /usr/sbin/pkg version -ql<
50339 1 D 0:00.12 /usr/sbin/pkg version -ql<
for pkg_has_updates facts always lock pkg for a long time and user can do anything with pkg. The problem is the slow 'pkg version' execution when ports not installed (and fetchindex not performed).
For example, on a PC with desktop role (KDE5) and 1746 packages this operation may take ~ 20 minutes (no ssd, one hdd).
Using of ports tree (even with the presence of INDEX-XX) to determine outdated packages
is incredibly slow. In addition ports may have the updated version while pkg still not.
Since we work with pkg and not the ports we need to fix the source to repo
Fixes for issue voxpupuli#91
For system with lot of packages execution of:
https://github.com/xaque208/puppet-pkgng/blob/2.1.1/lib/facter/pkg_updates.rb#L8:
for pkg_has_updates facts always lock pkg for a long time and user can do anything with pkg. The problem is the slow 'pkg version' execution when ports not installed (and fetchindex not performed).
For example, on a PC with desktop role (KDE5) and 1746 packages this operation may take ~ 20 minutes (no ssd, one hdd).
More details: freebsd/pkg#1739
it would be nice to regulate this behavior and be able to turn off. Or try to find another solution, for example pkg dry-run:
pkg upgrade -Unq
or
pkg version -RU
The text was updated successfully, but these errors were encountered: