[clug] Can dpkg install from a url?
carlo.hamalainen at gmail.com
Thu Feb 28 20:06:15 MST 2013
On Fri, Mar 1, 2013 at 12:36 PM, Scott Ferguson <
scott.ferguson.clug at gmail.com> wrote:
> Um, maybe a Ubuntu users forum isn't always the best indicator of what
> Debian package management can do.
What about CLUG? :)
No need to re-invent the wheel, both wget and curl can download from a
> url, and dpkg will install. eg:-
> $ wget $url;su -c "dpkg -i $DownloadedPackage"
I've done that in some scripts and there are annoying corner cases, e.g. if
the file exists you end up with blah.deb.1, blah.deb.2, etc, and you have
to remove the file afterwards. RPM deals with this.
You could script it properly as a one liner in .bash_aliases (%1 to get
> $url and sed that for $DownloadedPackage) or a module in .bashrc.
> I'd be *very* wary of installing packages from a url. Better to use a
> signed, trusted repostitory - or check out the source and make a package
> from that.
> You could maybe also create a little script that did "su -c "dpkg -i %1"
> and associate the script with the .deb extension in Iceweasel/whatever
I'll take this all as a 'no' to my original question :)
More information about the linux