1.5 KB

Apt-P2P Clean

apt-p2p-clean cleans up the Apt-P2P cache by checking if .deb files in the cache (after it is cleaned by apt-get autoclean or aptitude autoclean) and removing those .deb files that are not present.

It is released under the Apache License, Version 2.0.


You can check out the code straight from the Git repository:

git clone


On Debian or Ubuntu you can install it from

apt-get install apt-p2p-clean


Usage: apt-p2p-clean [options]

  -a ARCHIVE, --archive=ARCHIVE   set the APT archive directory (default:
  -c CACHE, --cache=CACHE         set the Apt-P2P cache directory (default:
  -e, --execute                   clean up the Apt-P2P cache
  -h, --help                      show this help message and exit
  -n, --no-execute                show what would be done to clean up the
                                  Apt-P2P cache
  -v, --version                   show version information and exit