For RKWard I am currently working on a "wizard" to look for some optional but recommended external software. I would love for that wizard to be able to offer to install the software in question mostly automagically. I was hoping to be able to utilize muon for this (if available), but to my disappointment, there does not seem to be a commandline option to select one or more packages for installation. Something like muon install kbibtex okular Obviously, package names may differ across distributions, but in many cases I imagine the above could work out of the box, and would be very useful, indeed.
Maybe you can use `qapt-batch`, which is intended for your use case and is based on the same library (libqapt3) as Muon. Other examples I can think of are * kubuntu-driver-manager is using libQApt as a c++ library https://cgit.kde.org/scratch/garg/kcm-driver-manager.git/tree/src/DriverManager.cpp#n25 * ubuntu-drivers-common is using python3-apt * Spectacle, this is a more recent and adequate example especially if you want to install other applications like Okular. In the Spectacle window click on Tools > Record screen > Others > Peek > Install (If Peek is not already installed, you can install it from there with Discover) I thank you for your interest in Muon. But, your best bet is probably to look at Spectacle and use Discover as it is more modern, actively maintained and may work with more distributions (not just deb based). You may also have a look at how it is done for localization packages. There is a notification in the system tray when additional packages are available, not sure how that one works.
Muon is no longer maintained, please switch no a supported alternative like https://apps.kde.org/discover/ or the package manager native no your system. Sorry for the inconvenience.