&apt-author.jgunthorpe; &apt-author.team; &apt-email; &apt-product;
29 February 2004
apt-sortpkgs 1
apt-sortpkgs Utility to sort package index files
`apt-sortpkgs` `-hvs` `-o=config string` `-c=file` file

## Description

`apt-sortpkgs` will take an index file (Source index or Package index) and sort the records so that they are ordered by the package name. It will also sort the internal fields of each record according to the internal sorting rules.

All output is sent to stdout, the input must be a seekable file.

## options

&apt-cmdblurb;

`-s`
`--source`

  Use Source index field ordering. Configuration Item: `APT::SortPkgs::Source`.

&apt-commonoptions;

## See Also

&apt-conf;

## Diagnostics

`apt-sortpkgs` returns zero on normal operation, decimal 100 on error.

&manbugs;