If you allow yourselves to move away from standard packages, take a look on nala (the dnf/yum for deb-based distrib) ;) https://gitlab.com/volian/nala
Great example! Especially for personal use cases. And although it's very easy to do it with Ansible, it's this kind of exercise that led me to find organize-tool (https://organize.readthedocs.io/). Thanks.