]> git.saurik.com Git - apt-legacy.git/blob - doc/apt-sortpkgs.1
e6d80b9fc4ff2cfa4ab8c2602058ddd97cb2c377
[apt-legacy.git] / doc / apt-sortpkgs.1
1 .\" Title: apt\-sortpkgs
2 .\" Author: Jason Gunthorpe
3 .\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
4 .\" Date: 29 February 2004
5 .\" Manual:
6 .\" Source: Linux
7 .\"
8 .TH "APT\-SORTPKGS" "1" "29 February 2004" "Linux" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 apt\-sortpkgs \- Utility to sort package index files
15 .SH "SYNOPSIS"
16 .HP 13
17 \fBapt\-sortpkgs\fR [\fB\-hvs\fR] [\fB\-o=\fR\fB\fIconfig\ string\fR\fR] [\fB\-c=\fR\fB\fIfile\fR\fR] \fIfile\fR...
18 .SH "DESCRIPTION"
19 .PP
20 \fBapt\-sortpkgs\fR
21 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.
22 .PP
23 All output is sent to stdout, the input must be a seekable file.
24 .SH "OPTIONS"
25 .PP
26 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
27 \fB\-f\-\fR,\fB\-\-no\-f\fR,
28 \fB\-f=no\fR
29 or several other variations.
30 .PP
31 \fB\-s\fR, \fB\-\-source\fR
32 .RS 3n
33 Use Source index field ordering. Configuration Item:
34 APT::SortPkgs::Source.
35 .RE
36 .PP
37 \fB\-h\fR, \fB\-\-help\fR
38 .RS 3n
39 Show a short usage summary.
40 .RE
41 .PP
42 \fB\-v\fR, \fB\-\-version\fR
43 .RS 3n
44 Show the program version.
45 .RE
46 .PP
47 \fB\-c\fR, \fB\-\-config\-file\fR
48 .RS 3n
49 Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. See
50 \fBapt.conf\fR(5)
51 for syntax information.
52 .RE
53 .PP
54 \fB\-o\fR, \fB\-\-option\fR
55 .RS 3n
56 Set a Configuration Option; This will set an arbitary configuration option. The syntax is
57 \fB\-o Foo::Bar=bar\fR.
58 .RE
59 .SH "SEE ALSO"
60 .PP
61 \fBapt.conf\fR(5)
62 .SH "DIAGNOSTICS"
63 .PP
64 \fBapt\-sortpkgs\fR
65 returns zero on normal operation, decimal 100 on error.
66 .SH "BUGS"
67 .PP
68 [1]\&\fIAPT bug page\fR. If you wish to report a bug in APT, please see
69 \fI/usr/share/doc/debian/bug\-reporting.txt\fR
70 or the
71 \fBreportbug\fR(1)
72 command.
73 .SH "AUTHORS"
74 .PP
75 \fBJason Gunthorpe\fR
76 .sp -1n
77 .IP "" 3n
78 Author.
79 .PP
80 \fBAPT team\fR
81 .sp -1n
82 .IP "" 3n
83 Author.
84 .SH "REFERENCES"
85 .TP 3
86 1.\ APT bug page
87 \%http://bugs.debian.org/src:apt