]> git.saurik.com Git - apt.git/blob - doc/apt-sortpkgs.1.xml
merge with debian-experimental-ma
[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 <refmiscinfo class="manual">APT</refmiscinfo>
25 </refmeta>
26
27 <!-- Man page title -->
28 <refnamediv>
29 <refname>apt-sortpkgs</refname>
30 <refpurpose>Utility to sort package index files</refpurpose>
31 </refnamediv>
32
33 <!-- Arguments -->
34 <refsynopsisdiv>
35 <cmdsynopsis>
36 <command>apt-sortpkgs</command>
37 <arg><option>-hvs</option></arg>
38 <arg><option>-o=<replaceable>config string</replaceable></option></arg>
39 <arg><option>-c=<replaceable>file</replaceable></option></arg>
40 <arg choice="plain" rep="repeat"><replaceable>file</replaceable></arg>
41 </cmdsynopsis>
42 </refsynopsisdiv>
43
44 <refsect1><title>Description</title>
45 <para><command>apt-sortpkgs</command> will take an index file (Source index or Package
46 index) and sort the records so that they are ordered by the package name.
47 It will also sort the internal fields of each record according to the
48 internal sorting rules.</para>
49
50 <para>
51 All output is sent to stdout, the input must be a seekable file.</para>
52 </refsect1>
53
54 <refsect1><title>options</title>
55 &apt-cmdblurb;
56
57 <variablelist>
58 <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
59 <listitem><para>
60 Use Source index field ordering.
61 Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
62 </varlistentry>
63
64 &apt-commonoptions;
65
66 </variablelist>
67 </refsect1>
68
69 <refsect1><title>See Also</title>
70 <para>&apt-conf;</para>
71 </refsect1>
72
73 <refsect1><title>Diagnostics</title>
74 <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
75 </refsect1>
76
77 &manbugs;
78
79 </refentry>