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">
13 &apt-author.jgunthorpe;
17 <!-- The last update date -->
18 <date>29 February
2004</date>
22 <refentrytitle>apt-sortpkgs
</refentrytitle>
23 <manvolnum>1</manvolnum>
26 <!-- Man page title -->
28 <refname>apt-sortpkgs
</refname>
29 <refpurpose>Utility to sort package index files
</refpurpose>
35 <command>apt-sortpkgs
</command>
36 <arg><option>-hvs
</option></arg>
37 <arg><option>-o=
<replaceable>config string
</replaceable></option></arg>
38 <arg><option>-c=
<replaceable>file
</replaceable></option></arg>
39 <arg choice=
"plain" rep=
"repeat"><replaceable>file
</replaceable></arg>
43 <refsect1><title>Description
</title>
44 <para><command>apt-sortpkgs
</command> will take an index file (Source index or Package
45 index) and sort the records so that they are ordered by the package name.
46 It will also sort the internal fields of each record according to the
47 internal sorting rules.
</para>
50 All output is sent to stdout, the input must be a seekable file.
</para>
53 <refsect1><title>options
</title>
57 <varlistentry><term><option>-s
</option></term><term><option>--source
</option></term>
59 Use Source index field ordering.
60 Configuration Item:
<literal>APT::SortPkgs::Source
</literal>.
</para></listitem>
68 <refsect1><title>See Also
</title>
69 <para>&apt-conf;
</para>
72 <refsect1><title>Diagnostics
</title>
73 <para><command>apt-sortpkgs
</command> returns zero on normal operation, decimal
100 on error.
</para>