]> git.saurik.com Git - apt.git/blame - doc/apt-sortpkgs.1.xml
* apt-pkg/policy.cc:
[apt.git] / doc / apt-sortpkgs.1.xml
CommitLineData
24f6490f
AL
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
0c1a7101
DK
8<!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
9%aptverbatiment;
10
24f6490f
AL
11]>
12
13<refentry>
5e80de29
AL
14
15 <refentryinfo>
16 &apt-author.jgunthorpe;
17 &apt-author.team;
18 &apt-email;
19 &apt-product;
20 <!-- The last update date -->
21 <date>29 February 2004</date>
22 </refentryinfo>
24f6490f
AL
23
24 <refmeta>
25 <refentrytitle>apt-sortpkgs</refentrytitle>
26 <manvolnum>1</manvolnum>
f0599b9c 27 <refmiscinfo class="manual">APT</refmiscinfo>
24f6490f
AL
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 <!-- Arguments -->
37 <refsynopsisdiv>
38 <cmdsynopsis>
39 <command>apt-sortpkgs</command>
40 <arg><option>-hvs</option></arg>
41 <arg><option>-o=<replaceable>config string</replaceable></option></arg>
42 <arg><option>-c=<replaceable>file</replaceable></option></arg>
43 <arg choice="plain" rep="repeat"><replaceable>file</replaceable></arg>
44 </cmdsynopsis>
45 </refsynopsisdiv>
46
47 <refsect1><title>Description</title>
48 <para><command>apt-sortpkgs</command> will take an index file (Source index or Package
49 index) and sort the records so that they are ordered by the package name.
50 It will also sort the internal fields of each record according to the
51 internal sorting rules.</para>
52
53 <para>
54 All output is sent to stdout, the input must be a seekable file.</para>
55 </refsect1>
56
57 <refsect1><title>options</title>
58 &apt-cmdblurb;
59
60 <variablelist>
61 <varlistentry><term><option>-s</option></term><term><option>--source</option></term>
62 <listitem><para>
63 Use Source index field ordering.
64 Configuration Item: <literal>APT::SortPkgs::Source</literal>.</para></listitem>
65 </varlistentry>
66
67 &apt-commonoptions;
68
69 </variablelist>
70 </refsect1>
71
72 <refsect1><title>See Also</title>
73 <para>&apt-conf;</para>
74 </refsect1>
75
76 <refsect1><title>Diagnostics</title>
77 <para><command>apt-sortpkgs</command> returns zero on normal operation, decimal 100 on error.</para>
78 </refsect1>
79
80 &manbugs;
24f6490f
AL
81
82</refentry>