Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2023 20:50:40 -0500
From:      Patrick McMunn <doctorwhoguy@gmail.com>
To:        freebsd-pkg@freebsd.org
Subject:   Suggestion for speeding up pkg
Message-ID:  <CAKS%2Bcu03sguU5CJJbCWXWxD-5U%2BxHxnb8mWXuibM0migrchwmQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--00000000000071cc4705fd947b17
Content-Type: text/plain; charset="UTF-8"

I'm just a regular user of FreeBSD, but I'd like to make a suggestion. When
installing a large set of packages, such as "pkg install kde5", it can take
quite a while to download all that data. Why does pkg download ALL the
packages and only then begin to extract and install them? Would it not be a
more efficient use of time to calculate dependencies first, then begin
downloading the packages in the order in which they are required, and then
begin extracting and installing them as they are downloaded instead of
waiting for the download to complete before beginning installation?

I understand that part of the reason is verification and such, but the
default could be extracting and installing to a temporary directory then
merging to the live system once everything is downloaded and extracted.
Make the behavior configurable by the user. Set sane defaults. Check for
sufficient disk space immediately after dependency calculation to make sure
space is available for the downloads, the extracted contents, and any other
necessities. This will make for a more pleasant user experience.

--00000000000071cc4705fd947b17
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m just a regular user of FreeBSD, but I&#39;d like t=
o make a suggestion. When installing a large set of packages, such as &quot=
;pkg install kde5&quot;, it can take quite a while to download all that dat=
a. Why does pkg download ALL the packages and only then begin to extract an=
d install them? Would it not be a more efficient use of time to calculate d=
ependencies first, then begin downloading the packages in the order in whic=
h they are required, and then begin extracting and installing them as they =
are downloaded instead of waiting for the download to complete before begin=
ning installation?<br><br>I understand that part of the reason is verificat=
ion and such, but the default could be extracting and installing to a tempo=
rary directory then merging to the live system once everything is downloade=
d and extracted. Make the behavior configurable by the user. Set sane defau=
lts. Check for sufficient disk space immediately after dependency calculati=
on to make sure space is available for the downloads, the extracted content=
s, and any other necessities. This will make for a more pleasant user exper=
ience.</div>

--00000000000071cc4705fd947b17--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKS%2Bcu03sguU5CJJbCWXWxD-5U%2BxHxnb8mWXuibM0migrchwmQ>