mkosi icon indicating copy to clipboard operation
mkosi copied to clipboard

Support using aria2c to speed up package manager downloads

Open sarthakag12 opened this issue 3 years ago • 2 comments

Currently, mkosi uses apt-get to install the packages: https://github.com/systemd/mkosi/blob/main/mkosi/init.py#L2682

Can the time it takes to install the packages be reduced if we use apt-fast instead of apt-get? I'm not sure if this has been investigated before. I would be happy to take it up, if not.

sarthakag12 avatar Aug 03 '22 07:08 sarthakag12

We're not going to take a dependency on an extra shell script in mkosi. If I look at apt-fast, it mostly seems to configure apt to use aria2c to speed up downloads. I wouldn't mind investigating whether we can (optionally) use aria2c to speed up downloads, so I'll rename the issue to reflect that.

DaanDeMeyer avatar Aug 03 '22 08:08 DaanDeMeyer

Okay, that makes sense. Thanks for updating the issue title. The alternative way of first installing apt-fast on the system and executing alias apt-get='apt-fast' reduces the need for this change.

sarthakag12 avatar Aug 03 '22 15:08 sarthakag12

Let's close this, usage of aria2c is likely best achieved by overriding apt-get somehow

DaanDeMeyer avatar Feb 14 '23 15:02 DaanDeMeyer