Bug 422288 - Muon should have a command line option to select specified packages for installation
Summary: Muon should have a command line option to select specified packages for insta...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: muon
Classification: Unmaintained
Component: muon (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-31 09:59 UTC by Thomas Friedrichsmeier
Modified: 2024-09-23 18:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Friedrichsmeier 2020-05-31 09:59:13 UTC
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.
Comment 1 Carlo Vanini 2020-06-01 21:59:02 UTC
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.
Comment 2 Christoph Cullmann 2024-09-23 18:22:07 UTC
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.