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.

RELATED TO approx-gc…

AUTHOR

Eric Cooper <[email protected]>