[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Feature request: install package by passing URL to apt-get



Person the human wrote: 
> I just want to get everyone's opinion on this before I request it from the
> developers or possibly try to add it myself.
> 
> Would it be nice if it was possible to pass a URL to 'apt install' so that
> a package could be installed without first downloading its .deb file? I
> think it's good because it can save time and prevent unneeded damage to
> SSDs. Even if you don't have any info to add, please let me know what you
> think.

# mkdir /tmp/apt
# mount -t tmpfs  -o size=500M /tmp/apt
# ( cd /tmp/apt ; wget URL ; apt install ./package.deb )
# umount /tmp/apt

That does what you want, I think. You could wrap this up in a
script if you found yourself needing to do it often.

In general, however, you aren't damaging your SSD's lifetime by
writing packages that you're going to install. You damage the
lifetime by writing lots and lots of things to it, over and
over.

-dsr-


Reply to: