AptUrl

Differences between revisions 7 and 8
Revision 7 as of 2009-04-09 17:01:29
Size: 1883
Editor: pool-71-167-61-254
Comment:
Revision 8 as of 2009-04-16 19:31:26
Size: 1973
Editor: pool-71-167-59-8
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

[[http://manpages.ubuntu.com/manpages/intrepid/en/man8/apturl.8.html|AptURL man page]]

The apturl is a graphical mini-program for installing packages from the repository that as user has. It is pre-installed on Ubuntu since version 7.10, and the Firefox and Pidgin programs come with support for it.

AptURL man page

Single package

The basic syntax for an apt link is the following:

  • <a href="apt:package">click</a>

Where package is the package you'd like the user to install.

Multiple packages

To bundle several packages into one link, the syntax is the following:

  • <a href="apt:package1;apt:package2;apt:package3">click</a>

Where package1, package2 and package3 are the packages you'd like the user to install.

The man page uses commas:

  • apturl apt:pidgin,pidgin-plugin-pack

Installs Pidgin and Pidgin Plugin Pack (if the user confirms).

Enabling repositories

  • apturl apt:freevial?section=universe

Enables the "universe" component and installs package Freevial.

Some websites / wiki's tend to break apt links. A workaround for this is to make use of appnr.com for the linking - simply use http://appnr.com/install/package as the link URL, though appnr does not let you add repositories.

Another workaround is to use a service like TinyURL. This link enables the Universe repository and then installs Wine, for instance: http://tinyurl.com/installwine

AptURL uses

Appnr.com is a website that works entirely on apturl links.

Apturl links can also be very handy if your program is available in Ubuntu repositories. Providing one on your project website is a user-friendly way to have the user install your program and additionally takes the load off your servers.

AptUrl (last edited 2009-11-14 21:45:27 by pool-71-167-60-95)