Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

approx-gc(8) [debian man page]

APPROX-GC(8)						      System Manager's Manual						      APPROX-GC(8)

NAME
approx-gc - garbage-collect the cache of Debian archive files SYNOPSIS
approx-gc [OPTION]... DESCRIPTION
approx-gc scans the cache created by approx(8) and finds files that are corrupted or no longer needed. With no options specified, these files are listed on standard output and removed from the cache. A corrupted file is one whose size or checksum does not match the value specified in the Packages or Sources file. An unneeded file is one that is not referenced from any distribution's Packages or Sources file. approx-gc may take several minutes to finish. OPTIONS
-c file, --config file Specify an additional configuration file. May be used multiple times. -f, --fast Don't perform checksum validation. -k, --keep, -s, --simulate Don't remove files from the cache. -q, --quiet Don't print file names. -v, --verbose Print the reason for removal of each file. EXAMPLES
To remove all unneeded or corrupted files from the cache: approx-gc --quiet This is run as a weekly cron(8) job. To list the files that would be removed from the cache, without actually doing so: approx-gc --keep FILES
/etc/approx/approx.conf Configuration file for approx and related programs. /var/cache/approx Default cache directory for archive files. SEE ALSO
approx.conf(5), approx(8), cron(8) AUTHOR
Eric Cooper <ecc@cmu.edu> May 2011 APPROX-GC(8)

Check Out this Related Man Page

APPROX.CONF(5)                                                  File Formats Manual                                                 APPROX.CONF(5)

NAME
approx.conf - configuration file for approx proxy server SYNOPSIS
/etc/approx/approx.conf DESCRIPTION
Each non-blank line of the configuration file should contain a name/value pair, separated by white space. Comments start with a "#" char- acter and continue to the end of the line. Names that begin with the "$" character are reserved for use as configuration parameters. The following parameters are currently defined: $cache Specifies the location of the approx cache directory (default: /var/cache/approx). It and all its subdirectories must be owned by the approx server (see also the $user and $group parameters, below.) $interval Specifies the time in minutes after which a cached file will be considered too old to deliver without first checking with the remote repository for a newer version (default: 60) $max_rate Specifies the maximum download rate from remote repositories, in bytes per second (default: unlimited). The value may be suffixed with "K", "M", or "G" to indicate kilobytes, megabytes, or gigabytes per second, respectively. $max_redirects Specifies the maximum number of HTTP redirections that will be followed when downloading a remote file (default: 5) $user, $group Specifies the user and group that owns the files in the approx cache (default: approx) $syslog Specifies the syslog(3) facility to use when logging (default: daemon) $pdiffs Specifies whether to support IndexFile diffs (default: true) $offline Specifies whether to deliver (possibly out-of-date) cached files when they cannot be downloaded from remote repositories (default: false) $max_wait Specifies how many seconds an approx(8) process will wait for a concurrent download of a file to complete, before attempting to download the file itself (default: 10) $verbose Specifies whether informational messages should be printed in the log (default: false) $debug Specifies whether debugging messages should be printed in the log (default: false) The other name/value pairs are used to map distribution names to remote repositories. For example, debian http://ftp.debian.org/debian security http://security.debian.org TCP PORT NUMBER
The port on which approx(8) listens is not specified in this file, but in /etc/inetd.conf. The default value is 9999, for compatibility with apt-proxy(8), but it may be changed by running the command dpkg-reconfigure approx SEE ALSO
approx(8), approx-gc(8), inetd(8) AUTHOR
Eric Cooper <ecc@cmu.edu> Apr 2012 APPROX.CONF(5)
Man Page