XBPS utilities work with PKGget
Here is the previous woofV project post:
https://bkhome.org/news/202403/easyvoid-problem-with-user-installed-packages.html
PKGget is a GUI frontend for XBPS, but actually the "Puppy database" format is still the intermediary. There are still /root/.packages/woof-installed-packages, user-installed-packages, Packages-* and *.files files, just like any normal pup.
Testing today, looking good when using the GUI; however, if the user wants to run the XBPS utilities directly in a terminal, any change such as install a package by running "xbps-install" or removed by running "xbps-remove", does not update the "puppy format" information in /root/.packages, hence the change does not appear in the GUI.
To fix this I have created /etc/profile.d/xbps-aliases:
Which will run wrapper scripts:
https://github.com/bkauler/woofq/blob/main/easyos/easy-code/rootfs-skeleton/usr/bin/xbps-install.sh
https://github.com/bkauler/woofq/blob/main/easyos/easy-code/rootfs-skeleton/usr/bin/xbps-remove.sh
Currently not supporting 'vpm'.
There are other ways to do it. Could create a daemon, that does an inotify wait on the XBPS 'pkgdb-0.38.plist' installed-packages file and the repository database files. Anyway, will see how this alias method works.
EDIT 2024-03-07:
No problem with vpm; it should work fine with these aliases.
vpm is a bash script, intended to make XBPS management easier. See project:
https://codeberg.org/armin/vpm
Personally, I find the XBPS utilities easy to use, don't see any need for vpm. Anyway, it will be in easyVoid.
Interesting, I see that there is vpsm:
https://github.com/sineto/vpsm
Tags: easy