1 <?xml version=
"1.0" encoding=
"utf-8" standalone=
"no"?>
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
8 <!ENTITY % aptverbatiment SYSTEM
"apt-verbatim.ent">
16 &apt-author.jgunthorpe;
20 <!-- The last update date -->
21 <date>2004-
02-
29T00:
00:
00Z
</date>
25 <refentrytitle>apt-sortpkgs
</refentrytitle>
26 <manvolnum>1</manvolnum>
27 <refmiscinfo class=
"manual">APT
</refmiscinfo>
30 <!-- Man page title -->
32 <refname>apt-sortpkgs
</refname>
33 <refpurpose>Utility to sort package index files
</refpurpose>
36 &synopsis-command-apt-sortpkgs;
38 <refsect1><title>Description
</title>
39 <para><command>apt-sortpkgs
</command> will take an index file (Source index or Package
40 index) and sort the records so that they are ordered by the package name.
41 It will also sort the internal fields of each record according to the
42 internal sorting rules.
</para>
45 All output is sent to stdout, the input must be a seekable file.
</para>
48 <refsect1><title>options
</title>
52 <varlistentry><term><option>-s
</option></term><term><option>--source
</option></term>
54 Use Source index field ordering.
55 Configuration Item:
<literal>APT::SortPkgs::Source
</literal>.
</para></listitem>
63 <refsect1><title>See Also
</title>
64 <para>&apt-conf;
</para>
67 <refsect1><title>Diagnostics
</title>
68 <para><command>apt-sortpkgs
</command> returns zero on normal operation, decimal
100 on error.
</para>