volitank / nala

Nala is a front-end for libapt-pkg.
GNU General Public License v3.0
1.33k stars 49 forks source link

Feature request #38

Open ankek opened 3 months ago

ankek commented 3 months ago

This is not an actual issue but a feature request. We are pretty happy to use Nala for some automation with Debian-based VMs.

Current behavior of nala fetch requires manual approval step to accept desired mirrors. But it would be great if you could extend nala fetch command with an mirror auto-detection option and mirror auto-approval feature. In this case Nala will detect the fastest mirrors and set the first 3 in the list as default ones. CLI example may look like nala fetch -auto-approve.

And thanks again for a great tool.

volitank commented 2 months ago

Hi, the way Nala fetch works is kinda goofy, and that's my fault for being a poor coder. This does exist already though, you can run nala fetch --auto --yes and that should do what you're looking for. You can further optimize by using --country us to specify your country, this may not be worth it depending on where you live. And then --fetches 5 will make it automatically define 5 mirrors, the default for --auto is 3. This should all be documented and viewable if you run nala fetch --help