So, I've given in and installed 10-Stable. Things are much simpler now, and I will be happy enough using a stable release and less of a bother on the forums 😛
One last question before I leave this thread to rest though:
I now want to show the number of pending updates in my bar using pkgin
I've looked into the man page but couldn't figure out how to do it, without a bunch of awk
/sed
magic.
I'm happy to run a cronjob that runs pkgin update
once a day, or on every boot. But is there a simple way to get the number of available updates?
😃
EDIT OK, I found a way but please tell me if there is a simpler way.
~ λ doas pkgin -n full-upgrade
calculating dependencies...done.
10 packages to refresh:
MesaLib-21.3.9nb4
libLLVM-13.0.1nb4
libelf-0.8.13nb1
libepoxy-1.5.10nb2
libev-4.33
pcre-8.45
x11-links-1.35nb1
xcb-util-0.4.1
xcb-util-image-0.4.1
xcb-util-renderutil-0.3.10
1 package to upgrade:
osabi-NetBSD-10.0
0 to remove, 10 to refresh, 1 to upgrade, 0 to install
48M to download, 0B of additional disk space will be used
~ λ doas pkgin -n full-upgrade | grep "to upgrade:" | awk '{print $1}'
1
As a separate issue, I had to install osabi
from pkgsrc/pkgtools
because the required version needs to show osabi-NerBSD-10.0_STABLE
so I don't really understand why pkgin wants to "upgrade" this package.