Having this feature won't help me personally since I'm not using an SSD and
I don't download packages from the internet often. The reason I wanted this
to be built into apt is so that websites that would normally link to a file
and tell users to download it could instead just give users a command to
copy-paste into the terminal. It would help all users and change the way
people use apt.

On Wed, Jun 22, 2022 at 3:20 PM Dan Ritter <d...@randomstring.org> wrote:

> 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 via email to