February 02, 2008

One Click Install Hot–Linking

I’ve noticed a trend of people hot-linking ‘One-Click-Install’ YMP files directly from http://software.opensuse.org on their blogs and news stories. While it’s great that people are including these it is worth considering whether it would be wise to take a copy of the YMP file and host it yourselves, or on openSUSE wiki, or somewhere else which can host static content.

If your web-host doesn’t understand the YMP mimetype a link directly to a YMP file will not work, you can work around this using “data:” URLs by creating a link as follows:

data:text/x-suse-ymu,{link}

e.g.

<a href="data:text/x-suse-ymu,http://example.com/mysoftware.ymp">My Install Link</a>

The install links on http://software.opensuse.org/search are:

  • Auto-generated.
  • Subject to deletion/renaming at any time.

If you blog including a link taken directly from there then other people may simply copy it onto their blog/news site, and if the original disappears, or you need to make a change you end up with lots of broken or outdated links everywhere, even if you update your blog.

If someone points out a problem (need another package included, or a conflicting package removed, etc, then there’s no way to fix it. Additionally the YMPs generated by the buildservice are fairly inflexible at present as they are auto-generated from patterns. You might wish to alter it in a way not supported by the build-service.

Hotlinking is most likely to lead to headaches when the YMPs are complex, and frequently changing. Like the “install KDE4” links for example.

Hopefully that should help inform so as to enable you to make a decision as to whether to hotlink or copy the YMP.


- One comment Not publicly viewable

  1. Christopher

    I’m glad someone brought this up and explained how to solve the problem. The only issue I could see coming out of hosting your own YMPs is that of the package becoming stale and outdated.

    I suppose it’s up to the author to make sure that their links are correct and that any local content is up to date.

    Thanks for the post, that’s a mighty useful tip!

    03 Feb 2008, 17:28


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
© MMXXI