Move candidate packages to a directory instead of deleting them

paccache

paccache -m {{path/to/directory}}

click the source code to copy install paccache on any operating system with command-not-found.com