]> git.saurik.com Git - apt.git/blob - doc/apt-sortpkgs.1.xml
use apt-key to wrap gpg calls in testcases
[apt.git] / doc / apt-sortpkgs.1.xml
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % aptent SYSTEM "apt.ent"> %aptent;
5 <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent"> %aptverbatiment;
6 <!ENTITY % aptvendor SYSTEM "apt-vendor.ent"> %aptvendor;
7 ]>
8
9 <refentry>
10
11 <refentryinfo>
12 &apt-author.jgunthorpe;
13 &apt-author.team;
14 &apt-email;
15 &apt-product;
16 <!-- The last update date -->
17 <date>2012-06-09T00:00:00Z</date>
18 </refentryinfo>
19
20 <refmeta>
21 <refentrytitle>apt-sortpkgs</refentrytitle>
22 <manvolnum>1</manvolnum>
23 <refmiscinfo class="manual">APT</refmiscinfo>
24 </refmeta>
25
26 <!-- Man page title -->
27 <refnamediv>
28 <refname>apt-sortpkgs</refname>
29 <refpurpose>Utility to sort package index files</refpurpose>
30 </refnamediv>
31
32 &synopsis-command-apt-sortpkgs;
33
34 <refsect1><title>Description</title>
35 <para><command>apt-sortpkgs</command> will take an index file (source index or package
36 index) and sort the records so that they are ordered by the package name.
37 It will also sort the internal fields of each record according to the
38 internal sorting rules.</para>
39
40 <para>
41 All output is sent to standard output; the input must be a seekable file.</para>
42 </refsect1>
43
44 <refsect1><title>options</title>
45 &apt-cmdblurb;
46
47 <variablelist>
48 <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
49 <listitem><para>
50 Use source index field ordering.
51 Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
52 </varlistentry>
53
54 &apt-commonoptions;
55
56 </variablelist>
57 </refsect1>
58
59 <refsect1><title>See Also</title>
60 <para>&apt-conf;</para>
61 </refsect1>
62
63 <refsect1><title>Diagnostics</title>
64 <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
65 </refsect1>
66
67 &manbugs;
68
69 </refentry>