• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

netselect-apt Command Examples in Linux

by Deepika

“netselect-apt” is a utility tool that helps create a sources.list file for a Debian mirror with the lowest latency. “sources.list” is a configuration file in Debian-based systems that specifies the sources of packages and updates.

“netselect-apt” works by measuring the latency (the time it takes for a request to reach a server and receive a response) of different Debian mirrors, and choosing the one with the lowest latency. This helps ensure that updates and package installations will be performed quickly and efficiently, as the system will use the Debian mirror with the lowest latency.

The tool is particularly useful for Debian-based systems that are located far away from the nearest Debian mirror, as it helps to minimize the delay in downloading packages and updates. It can also be useful for systems with limited network resources, as it can help reduce the amount of data transmitted and improve network performance.

netselect-apt Command Examples

1. Create `sources.list` using the lowest latency server:

# sudo netselect-apt

2. Specify Debian branch, stable is used by default:

# sudo netselect-apt testing

3. Include non-free section:

# sudo netselect-apt --non-free

4. Specify a country for the mirror list lookup:

# sudo netselect-apt -c India

Filed Under: Linux

Some more articles you might also be interested in …

  1. avrdude: Driver program for Atmel AVR microcontrollers programming (Command Examples)
  2. from: Prints mail header lines from the current user’s mailbox
  3. fastboot Command Examples
  4. isosize: command not found
  5. How to schedule Jobs with Cron in Linux
  6. YUM command examples to install, remove and upgrade packages
  7. engrampa: command not found
  8. CentOS / RHEL 5, 6 : how to disable NetworkManager
  9. apt-file: command not found
  10. chacl Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright