There's a closed pull request on the void-packages repository xbps-src: add purge-binpkgs target https://github.com/void-linux/void-packages/pull/38098 Description: Removes from local repository binary packages which do not match template version. Keeps in place packages for which template is missing. Helps to sidestep #31347