Usage: apt-ftparchive [options] command
![](/@@/translation-newline)
Commands: packages binarypath [overridefile [pathprefix]]
sources srcpath [overridefile [pathprefix]]
contents path
release path
generate config [groups]
clean config
![](/@@/translation-newline)
apt-ftparchive generates index files for Debian archives. It supports
![](/@@/translation-newline)
many styles of generation from fully automated to functional replacements
![](/@@/translation-newline)
for dpkg-scanpackages and dpkg-scansources
![](/@@/translation-newline)
apt-ftparchive generates Package files from a tree of .debs. The
![](/@@/translation-newline)
Package file contains the contents of all the control fields from
![](/@@/translation-newline)
each package as well as the MD5 hash and filesize. An override file
![](/@@/translation-newline)
is supported to force the value of Priority and Section.
![](/@@/translation-newline)
Similarly apt-ftparchive generates Sources files from a tree of .dscs.
![](/@@/translation-newline)
The --source-override option can be used to specify a src override file
![](/@@/translation-newline)
The 'packages' and 'sources' command should be run in the root of the
![](/@@/translation-newline)
tree. BinaryPath should point to the base of the recursive search and
![](/@@/translation-newline)
override file should contain the override flags. Pathprefix is
![](/@@/translation-newline)
appended to the filename fields if present. Example usage from the
![](/@@/translation-newline)
Debian archive:
apt-ftparchive packages dists/potato/main/binary-i386/ > \
dists/potato/main/binary-i386/Packages
![](/@@/translation-newline)
Options:
-h This help text
--md5 Control MD5 generation
-s=? Source override file
-q Quiet
-d=? Select the optional caching database
--no-delink Enable delinking debug mode
--contents Control contents file generation
-c=? Read this configuration file
-o=? Set an arbitrary configuration option