Custom web browser protocol to install from apt-get

Tristan Wibberley maihem at maihem.org
Sun Mar 19 15:23:03 GMT 2006


Tristan Wibberley wrote:

> Perhaps the best thing to do would be to have an uri of the form:
> 
> apt-get-install:descriptor-uri
> 
> For simple things, data: could be used as the descriptor-uri.
> 
> Would "apt-get-install:http://foo.com/bar/banshee" or 
> apt-get-install:data:Package:%20pkgname%0cAdd-Conflicts:%20oldpkgname%0cAdd-Replaces:%20oldpkgname%0cTemporary-Sources:%20deb%20http://xyz%0c%20deb-src%20data:packagesfile.etc 

I was just thinking, maybe it is better to just do the torrent thing to 
download the file, and specify a mime-type, eg:

http://foo.com/bar/banshee (with a .suffix if you like bizarre names)

and let the server or anchor specify the mime type, and

data:text/x-autoapt,Package:%20pkgname%0cAdd-Conflic...

Then just associate the browser with text/x-autoapt

I don't think it would be a problem that the file will be downloaded as 
the user in this case - and could be modified, because the program that 
starts as root to run the installation would need to check for security 
issues and present the details to the user anyway.

This would be much simpler to implement, and work across browsers.

ps, sorry for that second crosspost, I didn't realise I'd left -devel in 
there.

-- 
Tristan Wibberley




More information about the sounder mailing list