How to save time and traffic upgrading with apt-proxy


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News How to save time and traffic upgrading with apt-proxy
# 1  
Old 06-26-2008
How to save time and traffic upgrading with apt-proxy

Thu, 26 Jun 2008 08:00:00 GMT
June is Bandwidth Conservation Month (well, not officially, but let's say that it is), so if you have multiple machines running an APT-powered Linux distribution such as Debian or Ubuntu, you should take a look at apt-proxy, a utility that caches package downloads in a shared pool for all interested parties on your LAN. This saves you both the time and the bandwidth it costs to download the same updates for more than one computer.


Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Proxy traffic consumption

Hello, I am under Ubuntu 16.04 at location1 and location2 and my question is about haproxy. I'd like to know when a port in location1 is redirected to another computer in location2, does incoming request to redirected port consume traffic both from 1 and 2 or just 2? What I'd like to accomplish... (6 Replies)
Discussion started by: baris35
6 Replies

2. Shell Programming and Scripting

Help with a script for proxy traffic

Hello folks; I'm trying to write a script to test our proxy servers to see if they're passing traffic and i need help please. I wrote this code below to implement "httpie" tool but still having issues. Can someone please take a look and let me know what's wrong with this code? The code is supposed... (2 Replies)
Discussion started by: Katkota
2 Replies

3. Shell Programming and Scripting

Grep 'time' in save records

Hi Team, Is there a way to grep time taken to save records. Its like there is one webpage where when I click save button taking so much time to save result. Therefore, I want to grep that time taken to save that record from file.log Thanks in advance. (1 Reply)
Discussion started by: TCS
1 Replies

4. UNIX for Dummies Questions & Answers

Write (save time) Permission set

When am saving a file using my username in Linux environment, the file permission granted is rw-r--r-- I have to manually change the permissions using chmod command. How do i write it to the disk as rw-rw-r while saving my file. (6 Replies)
Discussion started by: Avishek_rc1
6 Replies

5. Shell Programming and Scripting

Script for real time network traffic per process

Hi All Gurus, I want to write a script (bash/ksh/csh) which will show real time network traffic ( TCP or UDP ) generated by per process/PID. For both Linux/AIX system, as nethogs ( Linux package ) shows ? Any suggestion is MOST welcome. Thanks in Advance, Amritendu Das (3 Replies)
Discussion started by: linux.amrit
3 Replies

6. AIX

Script for real time network traffic per process

Hi All Gurus, I want to write a script (bash/ksh/csh) which will show real time network traffic ( TCP or UDP ) generated by per process/PID. For both Linux/AIX system, as nethogs ( Linux package ) shows ? Any suggestion is MOST welcome. Thanks in Advance, Amritendu Das (1 Reply)
Discussion started by: linux.amrit
1 Replies

7. Ubuntu

Upgrading 9.04 version 9.10 - slow boot time

After upgrading my 9.04 version to the 9.10 my boot time duplicates. I donīt know the reason why the time of boot gets to the double. Someone ??? Thx. (1 Reply)
Discussion started by: diesan
1 Replies

8. UNIX for Dummies Questions & Answers

How can I set save daylight time

Hi everybody... I am using IBM unix server . Server take time options from satellite but server is not include true setting . What can I do? (2 Replies)
Discussion started by: deox
2 Replies

9. Linux

Save CPU and memory utilization over time

Hi, I would like to view the cpu and memory utilization of a given job over time and save this information in a file, such that at the end of the process I can create a plot of the CPU and memory utilization over time. Is this possible? I would like to do the same for the io, is there any... (1 Reply)
Discussion started by: giorgos193
1 Replies
Login or Register to Ask a Question
APT-SPY(8)						      System Manager's Manual							APT-SPY(8)

NAME
apt-spy - program to generate a /etc/apt/sources.list.d/apt-spy.list file SYNOPSIS
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 ] DESCRIPTION
This manual page briefly documents the apt-spy command. apt-spy is a program that tests all of the Debian archive mirrors the user specifies for bandwith and writes, by default, to /etc/apt/sources.list.d/apt-spy.list the fastest server. The user can select which of the many Debian sites to benchmark by geographical location. apt-spy does not need to be run by root if the user provides a configuration file, a place where to store the mirror list and an output file. See examples for more details. OPTIONS
-d distribution Debian distribution to use. Sensible values would be `stable', `testing' or `unstable'. Distribution names can also be used. This value is directly used in the generated sources.list, and is required unless updating. -a area This will cause only servers in the specified area to be benchmarked. By default, valid values for area are `Africa', `Asia', `Europe', `North-America', `Oceania' and `South-America'. It is very easy to define your own areas or subset of servers to bench- mark. For further details see apt-spy.conf(5). -c config configuration file to use instead of /etc/apt-spy.conf. -e number `early finish'. Stop benchmarking after number of servers have been completed. Act as if all servers were benchmarked upon comple- tion. -f file file to grab from the Debian servers. By default apt-spy will test the servers by getting part of the `ls-lR' file in the base of the Debian tree on the mirror. This tells apt-spy to get file instead. It is assumed that this file is also relative to the Debian base directory. -i file use file as input for apt-spy. You should generate this input file using the -w option. -m mirror-list where to load the mirrors list from or where to save it to. The default location is /var/lib/apt-spy/mirrors.txt. Using this option allows you to specify a different location. When updating, this defines where the updated mirrors list will be saved. -o output-file location for the new sources.list. By default the new file is created as /etc/apt/sources.list. -p proxy use proxy as a proxy server. This should be specified as `hostname:port'. -s country-list A comma-separated list of countries to benchmark. At the moment, this cannot be used with the "area" option. -t time how long (approximately) in seconds to download for. By default time is 15 seconds. How long the benchmark actually downloads for varies due to the way libcurl works. With the default 15 seconds, the benchmark generally takes beween 10 and 25 seconds. Each server has potentially two protocols (ftp and http) so roughly one minute per server would be a reasonable estimate of how long it should take. Be aware that this does vary considerably, and that benchmarking any more than a very few servers takes considerable time (possibly several hours for `-a All'). -u update-URL specify custom URL to get an updated mirrors list from. This can be http, ftp, file, or any other URL type supported by libcurl. -w file write a number of top servers to file in a format suitable for use with the -i option. The number of servers to output can be speci- fied with the -n option, and defaults to 5. -n number the number of top servers to write with the -w option. update connect to http.us.debian.org and download the mirror list to /var/lib/apt-spy/mirrors.txt. The -u or -m options may be used to respectively specify a different URL for the mirrors list or a different location for the downloaded file. -v output a version number. -h print a short usage message. EXAMPLES
Non root usage: apt-spy -d stable -a Europe -m ./mirror.txt -o apt-spy.list -c apt-spy.conf Above command tests European mirrors for stable Debian release saving http://http.us.debian.org/debian/README.mirrors.txt into mirror.txt, writing source file into apt-spy.list using configuration from apt-spy.conf. Note that not root users need to specified all these parame- ters. Updating mirror list file: apt-spy update Creating the /etc/apt/sources.list.d/apt-spy.list file: apt-spy -d stable SEE ALSO
sources.list(5), apt-spy.conf(5), apt(8). AUTHOR
apt-spy and this manual page was written by Steven Holmes <steg@bsdeviant.org> and updated by Stefano Canepa <sc@linux.it>. The original version of apt-spy was written by Danny Rodriguez <messiah@optonline.net>. This version is a total rewrite. 17th December, 2011 APT-SPY(8)