]> git.saurik.com Git - apt.git/blob - doc/apt-sortpkgs.1.xml
* apt-pkg/packagemanager.cc:
[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
5 <!ENTITY % aptent SYSTEM "apt.ent">
6 %aptent;
7
8 <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
9 %aptverbatiment;
10
11 ]>
12
13 <refentry>
14
15 <refentryinfo>
16 &apt-author.jgunthorpe;
17 &apt-author.team;
18 &apt-email;
19 &apt-product;
20 <!-- The last update date -->
21 <date>2012-06-09T00:00:00Z</date>
22 </refentryinfo>
23
24 <refmeta>
25 <refentrytitle>apt-sortpkgs</refentrytitle>
26 <manvolnum>1</manvolnum>
27 <refmiscinfo class="manual">APT</refmiscinfo>
28 </refmeta>
29
30 <!-- Man page title -->
31 <refnamediv>
32 <refname>apt-sortpkgs</refname>
33 <refpurpose>Utility to sort package index files</refpurpose>
34 </refnamediv>
35
36 &synopsis-command-apt-sortpkgs;
37
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>
43
44 <para>
45 All output is sent to standard output; the input must be a seekable file.</para>
46 </refsect1>
47
48 <refsect1><title>options</title>
49 &apt-cmdblurb;
50
51 <variablelist>
52 <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
53 <listitem><para>
54 Use source index field ordering.
55 Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
56 </varlistentry>
57
58 &apt-commonoptions;
59
60 </variablelist>
61 </refsect1>
62
63 <refsect1><title>See Also</title>
64 <para>&apt-conf;</para>
65 </refsect1>
66
67 <refsect1><title>Diagnostics</title>
68 <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
69 </refsect1>
70
71 &manbugs;
72
73 </refentry>