summaryrefslogtreecommitdiff
path: root/doc/apt-sortpkgs.1.xml
blob: b7f1993060e33a52dbeb986c3e0daf5f7c231db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % aptent SYSTEM "apt.ent"> %aptent;
<!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent"> %aptverbatiment;
<!ENTITY % aptvendor SYSTEM "apt-vendor.ent"> %aptvendor;
]>

<refentry>

 <refentryinfo>
   &apt-author.jgunthorpe;
   &apt-author.team;
   &apt-email;
   &apt-product;
   <!-- The last update date -->
   <date>2013-11-30T00:00:00Z</date>
 </refentryinfo>
 
 <refmeta>
   <refentrytitle>apt-sortpkgs</refentrytitle>
   <manvolnum>1</manvolnum>
   <refmiscinfo class="manual">APT</refmiscinfo>
 </refmeta>
 
 <!-- Man page title -->
 <refnamediv>
    <refname>apt-sortpkgs</refname>
    <refpurpose>Utility to sort package index files</refpurpose>
 </refnamediv>

 &synopsis-command-apt-sortpkgs;

 <refsect1><title>Description</title>
   <para><command>apt-sortpkgs</command> will take an index file (source index or package 
   index) and sort the records so that they are ordered by the package name. 
   It will also sort the internal fields of each record according to the 
   internal sorting rules.</para>

   <para>
   All output is sent to standard output; the input must be a seekable file.</para>
 </refsect1>
 
 <refsect1><title>options</title>
   &apt-cmdblurb;
   
   <variablelist>
     <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
     <listitem><para>
     Use source index field ordering.
     Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
     </varlistentry>
   
     &apt-commonoptions;
     
   </variablelist>
 </refsect1>

 <refsect1><title>See Also</title>
   <para>&apt-conf;</para>
 </refsect1>

 <refsect1><title>Diagnostics</title>
   <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
 </refsect1>

 &manbugs;
 
</refentry>