Debian Admin - Your way to Debian World

November 7, 2006

Check Debian archive mirrors bandwidth using apt-spy

by @ 10:00 am. Filed under Package Mgmt

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

apt-spy is a program that tests a series of Debian archive mirrors for bandwith.It writes an /etc/apt/sources.list with the fastest server.You can select which of the many Debian sites to benchmark by geographical location.

Install apt-spy in Debian

#apt-get install apt-spy

Install apt-spy in ubuntu

sudo apt-get install apt-spy

This will start the installation this time it will prompt for certificates select yes and click on ok

apt-spy Syntax

apt-spy -d distribution [ -a area ] [ -c config ] [ -e number ] [ -f file ] [ -i file ] [ -m mirror-list ] [ -o output-file ] [ -p proxy ] [ -s country-list ] [ -t time ] [ -u update-URL ] [ -w file ] [ -n number ] [ -h ] [ -v ] [ update ]

To retrieve the latest list of Debian mirrors you need to run the following command

# apt-spy update

To find the fastest mirror in europe for stable,you need to run the following command

# apt-spy -d stable -a europe

To find the fastest mirror in US for stable, run the following command

# apt-spy -d stable -s us

Here is the list of options available

# apt-spy -h

Usage: apt-spy [options]

options:

-d distribution Debian distribution (ie, stable). Required unless updating.
-a area Area to benchmark. (eg, Europe).
-c config Configuration file to use.
-e number Number of servers to benchmark before exiting.
-f file File to grab when benchmarking. (relative to Debian base).
-i file Specify input file. For use with the -w option.
-m mirror-list Mirror list to use, or mirror-list to update when updating.
-o output-file Where to put output.
-p proxy Proxy server to use. In format

Tags: , , , , , ,

You may also be interested in...

One Response to “Check Debian archive mirrors bandwidth using apt-spy”

  1. Jon Says:

    Do NOT run this under Ubuntu, not supported as of current date 4/22/2007

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

Related Links:


Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.