apt-fast - speed up downloading packages

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
User avatar
fredx181
Posts: 2663
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 294 times
Been thanked: 1050 times
Contact:

apt-fast - speed up downloading packages

Post by fredx181 »

apt-fast https://github.com/ilikenwf/apt-fast may seriously speed up downloading packages for installing on Debian and Ubuntu, it's using aria2 by default for downloading (command name is actually aria2c).
Here's a .deb package I've made https://github.com/doglinux/sid/raw/mas ... .0_all.deb , dependency is aria2 .
Usage: for example instead of apt install <packagename> do: apt-fast install <packagename>
All possible options for apt or apt-get do apply for apt-fast too, btw.

dancytron
Posts: 657
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 430 times
Been thanked: 192 times

Re: apt-fast - speed up downloading packages

Post by dancytron »

Installed on DD bookworm. Works as advertised so far.

edit: It's fast.

I just did libreoffice with recommends (about 1.5 gig) was really fast.

User avatar
fredx181
Posts: 2663
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 294 times
Been thanked: 1050 times
Contact:

Re: apt-fast - speed up downloading packages

Post by fredx181 »

dancytron wrote: Fri Aug 25, 2023 6:10 pm

Installed on DD bookworm. Works as advertised so far.

edit: It's fast.

I just did libreoffice with recommends (about 1.5 gig) was really fast.

Nice! I used it on Sid with the snapshot,debian.org repo activated in sources.list, on itself download speed is very slow (if using just apt with snapshot repo) but really makes a difference when using apt-fast.
To make it using apt-fast as default , alias for apt and apt-get, I added in ~/.bashrc :
alias apt-get="apt-fast"
alias apt="apt-fast"
And restarted X .
So then, even if you run apt install <package> it will run with apt-fast . To test (download package(s) only) run apt install <package> -d

dancytron
Posts: 657
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 430 times
Been thanked: 192 times

Re: apt-fast - speed up downloading packages

Post by dancytron »

Speeds up the mklive script too.

User avatar
fredx181
Posts: 2663
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 294 times
Been thanked: 1050 times
Contact:

Re: apt-fast - speed up downloading packages

Post by fredx181 »

dancytron wrote: Sat Aug 26, 2023 9:01 pm

Speeds up the mklive script too.

Interesting, curious, how you made mklive work with apt-fast ?

dancytron
Posts: 657
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 430 times
Been thanked: 192 times

Re: apt-fast - speed up downloading packages

Post by dancytron »

Maybe I just imagined it, but after I set it in .xsession I think it picked it up on it's own.

User avatar
fredx181
Posts: 2663
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 294 times
Been thanked: 1050 times
Contact:

Re: apt-fast - speed up downloading packages

Post by fredx181 »

dancytron wrote: Mon Aug 28, 2023 6:24 pm

Maybe I just imagined it, but after I set it in .xsession I think it picked it up on it's own.

That cannot work AFAIK, well, I just thought you did perhaps some modifying of mklive, should be possible to make it work, actually these days I'm experimenting with mkive-sid using apt-fast with the http://snapshot.debian.org/ repo. (edit: but downloading from snaphot.debian has some sort of rate limit, no complaint btw, it's a great service!)

dancytron
Posts: 657
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 430 times
Been thanked: 192 times

Re: apt-fast - speed up downloading packages

Post by dancytron »

It was probably cached the second time now that I think about it.

Libre Office with recommends came down fast though.

Post Reply

Return to “DebianDogs”