We have a lot of graphical tools for package management in Ubuntu, I’d say we have the best ones (apt, synaptic, gdebi, gnome-app-install, update-manager, as well its equivalents for QT/KDE). To install an application via gnome-app-install (Applications > Add/Remove…) is a piece of cake.
How could it be easier? I’ll give you a practical example:
To install aMule, click on the following icon:
OK, didn’t work? It’s because it is a new feature that is being implemented for, most likely, Gutsy (by mvo and the -core-dev) .
With this new feature it will be possible to install applications just by clicking in a link that point to a new apt:// protocol, it will call a dialog asking if the user really wants to install that package, if yes the superuser password will be asked and the package will be installed. It’s simple like that
Use cases:
- John has posted a question at the UbuntuForums telling that he can’t uncompress a .rar file using File Roller, and you perfectly knows that all John need to do is install the package ‘unrar’, so you go there and reply by saying:
apt://unrar
John will click on that link and then, after agreeing and putting his sudo password, the package will be installed getting rid with John’s trouble.
- To make easier the task of installing common used applications, you can put in your blog a link to the visitors install all the packages you recommend, all of those is found in the Ubuntu’s repos.:
apt://amule,banshee,brasero,tilda,mplayer,vlc,aptoncd
- Actually there are a lot of things you can do with that feature, mentioning them all will be waste of time. Let your mind fly.
It will also let you to specify a alternative repository (temporally) which is not in the user’s sources.list to install a specific package. More or less like that:
apt+http://archive.canonical.com?package=acroread?dist=feisty?section=commercial
It will install the package acroread for ubuntu feisty of the section ‘commercial’ from the ‘archive.canonical.com’ repository. Note that the syntax is basically the same found at the sources.list. The existing repositories that follow the Debian standard will be able to be used for the apt:// protocol.
You will also be able to specify a minimum version to be installed with the URL parameter ?minversion=0.1, to install the version 0.1 or more.
Security:
Some may think that this feature will be a security risk, but I’m going to tell you why it’s not: When the user click on the link apt://amule they are calling the package manager (synaptic) to install a package that are already available in your sources.list and is properly signed by a known keyfile/keyring, it’s like typing a sudo apt-get install amule. That package will be installed only if the key can be authenticated. If the package is part of a official Ubuntu repository it won’t be a problem, otherwise it will be need to specify the key on the URL and the user will must to accept it.
Notice that this is not a .deb file that is being parsed, it’s a named package, which differs from the use of gdebi (open with gdebi), for example.
How it works:
The functioning of this tool is as simple as its idea. If you are interested in testing this new feature and are already testing the Ubuntu Gutsy, all you need to do is to install the package ‘apturl‘ from universe repository. For those normal people who do not want to test gutsy yet, I made this package for Ubuntu Feisty and Debian Etch. After installed, you can try it by clicking on the amule logo at the begin of the post, or just use the apturl binary to play stand-alone.
This feature still in development and test stage you might use by your own risk. Some of the features mentioned here may not be implemented yet.
For now, it works only with Firefox. But other web browsers will be supported too.
apturl_0.0+bzr20070709_all.deb
Read the rest of this entry »