2
.\" Title: apt-sortpkgs
3
.\" Author: Jason Gunthorpe
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
.\" Date: 09\ \&June\ \&2012
10
.TH "APT\-SORTPKGS" "1" "09\ \&June\ \&2012" "APT 1.0" "APT"
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
25
.\" disable justification (adjust text to left margin only)
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
31
apt-sortpkgs \- Utility to sort package index files
33
.HP \w'\fBapt\-sortpkgs\fR\ 'u
34
\fBapt\-sortpkgs\fR [\fB\-s\fR] [\fB\-o=\fR\fB\fIconfig_string\fR\fR] [\fB\-c=\fR\fB\fIconfig_file\fR\fR] \fIfilename\fR... {\-v\ |\ \-\-version} {\-h\ |\ \-\-help}
38
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\&.
40
All output is sent to standard output; the input must be a seekable file\&.
43
All command line options may be set using the configuration file, the descriptions indicate the configuration option to set\&. For boolean options you can override the config file by using something like
44
\fB\-f\-\fR,\fB\-\-no\-f\fR,
46
or several other variations\&.
48
\fB\-s\fR, \fB\-\-source\fR
50
Use source index field ordering\&. Configuration Item:
51
APT::SortPkgs::Source\&.
54
\fB\-h\fR, \fB\-\-help\fR
56
Show a short usage summary\&.
59
\fB\-v\fR, \fB\-\-version\fR
61
Show the program version\&.
64
\fB\-c\fR, \fB\-\-config\-file\fR
66
Configuration File; Specify a configuration file to use\&. The program will read the default configuration file and then this configuration file\&. If configuration settings need to be set before the default configuration files are parsed specify a file with the
68
environment variable\&. See
70
for syntax information\&.
73
\fB\-o\fR, \fB\-\-option\fR
75
Set a Configuration Option; This will set an arbitrary configuration option\&. The syntax is
76
\fB\-o Foo::Bar=bar\fR\&.
80
can be used multiple times to set different options\&.
88
returns zero on normal operation, decimal 100 on error\&.
91
\m[blue]\fBAPT bug page\fR\m[]\&\s-2\u[1]\d\s+2\&. If you wish to report a bug in APT, please see
92
/usr/share/doc/debian/bug\-reporting\&.txt
109
\%http://bugs.debian.org/src:apt