site  contact  subhomenews

Cleanup user-installed packages when version update

November 17, 2026 — BarryK

I was reading posts by pp4mnk:

https://forum.puppylinux.com/viewtopic.php?p=180049#p180049

Yes, easy.sfs in Easy version 7.5.3 has bumped yradio to 1.9.6-1. If the user has installed a yradio .pet, that is going to interfere. In the initrd, there is a script /sbin/zrem-user-pkgs, that removes the conflicting user-installed .pet

I reviewed that code, and found that it does work, but only for .deb packages. When a package is installed, a file is created in /root/.packages/filesdb, with a list of all installed folders and files.

To test this, I installed 'yradio-1.9.5-1.pet' and yes, /root/.packages/filesdb/yradio-1.9.5-1.files got created.

Good, but the code in zrem-user-pkgs only looks for "yradio.files" and "yradio_*.files", which is ok for .deb packages, not the yradio .pet. I have modified the script:

   FLIST="$(find /mnt/${WKG_DEV}/${WKG_DIR}.session/session1/root/.packages/filesdb -maxdepth 1 -name "${aU}_*.files" | head -n 1)"
#20261117 pet pkg has filesdb/yradio-1.9.5-1.files ...
if [ -z "$FLIST" ];then
xaU="$(grep -F "|${aU}|" /mnt/${WKG_DEV}/${WKG_DIR}.session/session1/root/.packages/user-installed-packages | cut -f 1 -d '|' | head -n 1)"
FLIST="$(find /mnt/${WKG_DEV}/${WKG_DIR}.session/session1/root/.packages/filesdb -maxdepth 1 -name "${xaU}*.files" | head -n 1)"
fi

...looks like it will do the job.

This is a developer policy decision, that user-installed packages should not override those in easy.sfs. This is important, as the user may have installed an older package, say yradio-1.9.5-1, whereas the easy.sfs has a later version.   

Tags: easy