Perhaps something like this (with a few additions):
```pkg query %n | grep -vEe '^(FreeBSD-.+)' | xargs pkg remove -n && pkg autoremove -n && pkg clean -n
``` On 8/6/25 23:42, Mark Millard wrote:
Is there a known alternative to the command: chroot/FBSDFSSDroot-mnt/ pkg-static delete -a that would only delete port-packages, even if the chroot's world was based on a pkgbase world installation? If yes, what would the command be like?
