r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.36k stars 161 forks source link

Replace apt with apt-fast #891

Closed PrudhviBoggavarapu closed 2 years ago

PrudhviBoggavarapu commented 2 years ago

I want to suggest a new step

Use apt-fast instead of apt-get

Which tool is this about? Where is its repository?

This will speed up the apt download speed

https://github.com/ilikenwf/apt-fast

Which operating systems are supported by this tool?

Any linux distro that uses apt

What should Topgrade do to figure out if the tool needs to be invoked?

It is a drop in replacement

Which exact commands should Topgrade run?

Replace apt with apt-fast everytime apt is used

I want to suggest some general feature

Topgrade should... Replace apt with apt-fast everytime apt is used

MCOfficer commented 2 years ago

What should Topgrade do to figure out if the tool needs to be invoked?

It is a drop in replacement

Checking if the apt-fast command is in PATH should be sufficient. It's user-installed and a bit rare to see these days, so there are absolutely cases where it won't be installed.

r-darwish commented 2 years ago

https://github.com/r-darwish/topgrade/blob/547df8d346e8a7689213299f6fbb1d5807988b44/src/steps/os/linux.rs#L286

There's already support for apt-fast. Do you have apt-fast in your PATH?