]> git.saurik.com Git - apt.git/blob - doc/apt-sortpkgs.1.xml
apt-pkg/contrib/strutl.cc: increase the size limit
[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.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4
5 <!ENTITY % aptent SYSTEM "apt.ent">
6 %aptent;
7
8 ]>
9
10 <refentry>
11
12 <refentryinfo>
13 &apt-author.jgunthorpe;
14 &apt-author.team;
15 &apt-email;
16 &apt-product;
17 <!-- The last update date -->
18 <date>29 February 2004</date>
19 </refentryinfo>
20
21 <refmeta>
22 <refentrytitle>apt-sortpkgs</refentrytitle>
23 <manvolnum>1</manvolnum>
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 <!-- Arguments -->
33 <refsynopsisdiv>
34 <cmdsynopsis>
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>
40 </cmdsynopsis>
41 </refsynopsisdiv>
42
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>
48
49 <para>
50 All output is sent to stdout, the input must be a seekable file.</para>
51 </refsect1>
52
53 <refsect1><title>options</title>
54 &apt-cmdblurb;
55
56 <variablelist>
57 <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
58 <listitem><para>
59 Use Source index field ordering.
60 Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
61 </varlistentry>
62
63 &apt-commonoptions;
64
65 </variablelist>
66 </refsect1>
67
68 <refsect1><title>See Also</title>
69 <para>&apt-conf;</para>
70 </refsect1>
71
72 <refsect1><title>Diagnostics</title>
73 <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
74 </refsect1>
75
76 &manbugs;
77
78 </refentry>