February 09, 2008

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

  1. Copy http://bw.uwcs.co.uk/OCI/CLI/OneClickInstallCLI.ycp to /usr/share/YaST2/clients
  2. Copy http://bw.uwcs.co.uk/OCI/CLI/OCICLI to somewhere in your $PATH.
  3. Then run
      OCICLI <url>    

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.


[0] 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


- 4 comments by 1 or more people Not publicly viewable

  1. jajaja

    It would be cool if one could search for a package via webpin, be provided with a one click install url and then install – all on the same commandline
    would that be possible?

    13 Feb 2008, 17:26

  2. It should be, you need to talk to Pascal for modifications to the webpin command line client though.

    13 Feb 2008, 17:49

  3. jajaja

    I did! Let’s see what comes out of it….
    http://dev-loki.blogspot.com/2008/01/webpin-cli-090-and-faster-server.html

    13 Feb 2008, 21:58

  4. Vavai

    Hi Benji,

    It’s a useful tool. It’s pretty nice to get one-click-install from konsole :-)

    14 Feb 2008, 07:23


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

February 2008

Mo Tu We Th Fr Sa Su
Jan |  Today  | Mar
            1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29      

Search this blog

Tags

Galleries

Most recent comments

  • Hey skx, how do you do that ? I run into the fu….. problem, that curl terminate with unspec. error… by David on this entry
  • With some minor changes this will also work for updating from 11.0 to 11.1. by skx on this entry
  • You are the man!!! Great work and good documentation! It worked without any problem for me. Thanks a… by Vany on this entry
  • didn't work for me. In fact killed the system. Have to download 11.0 and burn to dvd to fix it. by maybe windows on this entry
  • Will this method work for 11 => 11.1 ? by Erik Jakobsen on this entry

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXIX