fmII
Sat, Jul 26th home | browse | articles | contact | chat | submit | faq | newsletter | about | stats | scoop 21:07 UTC
in
Section
login «
register «
recover password «
[Project] add release | add branch | add screenshot | broken links | change owner | email subscribers | update project | update branch (urls) [Project]

 apt-proxy - Stable branch
Section: Unix

 

Added: Thu, Dec 9th 1999 04:12 UTC (8 years, 7 months ago) Updated: Thu, Apr 4th 2002 14:30 UTC (6 years, 3 months ago)


About:
apt-proxy is a simple script to build up a Debian HTTP mirror based on requests which pass through the proxy. It's great for multiple Debian machines behind a slow link.

Author:
haggai [contact developer]

Rating:
8.46/10.00 (2 votes)

Homepage:
http://apt-proxy.sourceforge.net
Tar/GZ:
http://prdownloads.sourceforge.net/apt-proxy/apt-proxy_1.3.0.tar.gz
Changelog:
http://sourceforge.net/project/shownotes.php?release_id=82914
Debian package:
http://prdownloads.sourceforge.net/apt-proxy/apt-proxy_1.3.0_all.deb
CVS tree (cvsweb):
http://apt-proxy.cvs.sourceforge.net/
Mailing list archive:
http://sourceforge.net/mailarchive/forum.php?forum_id=7622

Trove categories: [change]
[Development Status]  5 - Production/Stable
[Environment]  No Input/Output (Daemon)
[Intended Audience]  System Administrators
[License]  OSI Approved :: GNU General Public License (GPL)
[Operating System]  POSIX
[Programming Language]  Unix Shell
[Topic]  Internet :: Proxy Servers, System :: Installation/Setup, System :: Software Distribution Tools

Dependencies: [change]
rsync (required)
GNU Wget (recommended)
[download links]

 
Project admins: [change]
» haggai (Owner)
» Rusty (Original author)

» Rating: 8.46/10.00 (Rank N/A)
» Vitality: 0.00% (Rank 7882)
» Popularity: 0.98% (Rank 5857)

project statsdownload stats
(click to enlarge graphs)
   Record hits: 22,464
   URL hits: 7,980
   Subscribers: 11

Other projects from the same categories:
AnyConfig library
Surftrackr
desproxy
rtkmerge
LoopLinux

Users who subscribed to this project also subscribed to:
freeglut
Status Report Tool
OpenAspect
XawTV
Debian GNU/Linux


Add comment · Rate this project · Subscribe to new releases · Ignore this project · Email this project to a friend · Project record in XML

 Branches

Branch Version Last release License URLs
Stable 1.3.0 04-Apr-2002 GNU General Public License (GPL) Homepage Tar/GZ Changelog Hosted on SourceForge.net
Development 1.2.9.2 06-Mar-2002 GNU General Public License (GPL) Homepage Tar/GZ Hosted on SourceForge.net

 Comments

[»] apt-proxy is alive!
by haggai - Feb 22nd 2002 03:14:28

After a long quiet period, apt-proxy has worken up again. There have been many fixes and
improvements, so if you haven't tried it for a while maybe you should have another look :)

http/ftp backend support is scheduled for 1.3.0, and is already in testing.

[reply] [top]


[»] squid for caching debs...
by abo - Oct 2nd 2000 19:08:58

I've found that squid, at least 2.2.STABLE5 version is not that good for caching large files like debs. The problem is that large downloads often fail before completion, and squid doesn't seem to use "resume" style requests on its retries, it just starts all over again.

The apt client is smart enough to do a "resume" request when squid finally gives up, but depending on how you configure squid, it either starts all over again from the beginning, or it only fetches part of the file that it then doesn't cache. For a 16M deb that can equate to multiple almost complete download attempts that are not even cached when it finally completes, if ever.

Also, squid's expiry model seems to be tuned for multiple small, frequently accessed, and frequently changing objects, not large, rarely accessed and never changing objects. It's psedo LRU expiry seems to be expiring the debs in my cache in favor of smaller objects with disturbing regularity.

apt-proxy is cool because it uses rsync to do the fetches, which in my experience is faster and more reliable than http for large downloads, and can do resumed fetches and delta-updates for objects that only change a little bit (ie Packages files). It also builds a mirror directory structure on demand that can be browsed/exported using other tools (giving ftp/http/whatever access to the same file repository). This makes if perfect for on-demand building and/or mantaining a debian mirror site.

[reply] [top]


[»] Re: Why use this ?
by Rusty - Oct 2nd 2000 01:03:57

Mainly because squid will download the Packages.gz file every time it changes: we only xfer the diffs (rsync). The auto-clean (only if a newer package) feature, fallback backends, and the fact that the cache layout maps 1:1 with the backend(s) (re-export cache via NFS/rsync/ftp) also helps.

That said, if you've already got squid up and running, it might be easier.

Rusty.

[reply] [top]


[»] Why use this ?
by Jean-Marc Liotier - Sep 29th 2000 04:53:28

I configured all the machines on my net to use the SQUID proxy on my DMZ for both FTP and HTTP. Since they all apt-get from the same Debian mirrors (give or take a handful of unofficial archives), SQUID handles all the caching with very little tweaking (maximum file size, more time until cached entry become stale, etc.). I found that method a more intuitive way to solve the resource mutualisation problem.

Several reasons make it especially efficient :
- packages in the cache have a limited lifespan. Therefore, building a mirror out of requests is only valid until the next package upgrade.
- a typical set-up only selects a fraction of the available packages, even less for a small number of supported hosts.
- using a general purpose caching program such as SQUID limits the additional complexity, and users do not have to change a line in their setup, provided they configured the proxy environment variable right.

As usual, there's more than one way to do it !

[reply] [top]


    [»] Re: Why use this ?
    by Tyson Clugg - May 7th 2001 23:12:54

    I could see this being usefull for large M$ Windows client network environments. Since Windows typically upgrades itself using Windows Update, this same system could be used to cache the packages from the M$ site.

    [reply] [top]


[»] This package changed my life!
by Rusty - Dec 10th 1999 00:43:53

This code is truly beautiful. The authors are geniuses. My mummy said so.

[reply] [top]




© Copyright 2008 SourceForge, Inc., All Rights Reserved.
About freshmeat.net •  Privacy Statement •  Terms of Use •  Trademark Guidelines •  Advertise •  Contact Us • 
ThinkGeek •  Slashdot  •  Linux.com •  SourceForge.net  •  Jobs