One Click Install links from the command line.
I get asked occasionally whether it is possible to install some software from a “one click install” link from the command line. Well now it is.
I’m not entirely sure what peoples’ usecase for this is, but up until now the only answer has been to download the .ymp file, read it and follow the instructions manually.
Fortunately the one click install handler is implemented using YaST, and YaST not only makes it easy to make your interfaces display with Qt/GTK/Ncurses0, but also to add command line interfaces.
Several YaST modules already have command line interfaces. For example try running
yast2 lan help
This made it quite easy to add command line support to the one click install handler.
Here’s a screenshot of it in action:
There is no support for doing anything interactive, like selecting optional software yet, but it should be functional.
If you want to try it out on openSUSE 10.3 simply
- Copy http://bw.uwcs.co.uk/OCI/CLI/OneClickInstallCLI.ycp to /usr/share/YaST2/clients
- Copy http://bw.uwcs.co.uk/OCI/CLI/OCICLI to somewhere in your $PATH.
- Then run
I need to remove some duplication of code with the existing graphical handler before committing to SVN, but it should be possible to include in future openSUSE versions if people want it.
 There’s a bug with the version in 10.3 that prevents it from functioning in ncurses mode, this should be fixed before 11.0