When you support package managers from A to Z...
Real screenshot from (crappy) personal project...
You may want to take a look at PackageKit
Ah, hmm, good point. I had been looking for a library to do this, and I'm even aware of PackageKit's existence, but apparently, the two thoughts never occurred at the same time. 🙃
Rust?
Rust.
Rust!