~ubuntu-branches/ubuntu/oneiric/dpkg/oneiric

1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
1
.\" Copyright © 1996 Michael Shields <shields@crosslink.net>
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
2
.\" 
3
.\" This is free software; you may redistribute it and/or modify
1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
4
.\" it under the terms of the GNU General Public License as published by
5
.\" the Free Software Foundation; either version 2 of the License, or
6
.\" (at your option) any later version.
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
7
.\"
1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
8
.\" This is distributed in the hope that it will be useful,
9
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
10
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
.\" GNU General Public License for more details.
12
.\"
1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
13
.\" You should have received a copy of the GNU General Public License
14
.\" along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
.TH dpkg\-scanpackages 1 "2009-10-01" "Debian Project" "dpkg utilities"
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
16
.SH NAME
28 by Ian Jackson
Merge from debian unstable, remaining changes follow:
17
dpkg\-scanpackages \- create Packages index files
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
18
.
19
.SH SYNOPSIS
20
.B dpkg\-scanpackages
21
.RI [ options ]
22
.I binary-dir
23
.RI [ override-file
24
.RI [ path-prefix ]]
25
.B >
26
.I Packages
27
.
28
.SH DESCRIPTION
29
.B dpkg\-scanpackages
30
sorts through a tree of Debian binary packages and creates a Packages
31
file, used by
32
.BR apt (8),
33
.BR dselect (1),
34
etc, to tell the user what packages are available for installation. These
35
Packages files are the same as those found on Debian archive sites
36
and CD-ROMs. You might use
37
.B dpkg\-scanpackages
38
yourself if making a directory of local packages to install on a cluster
39
of machines.
40
.PP
41
.B Note:
42
If you want to access the generated Packages file with
43
.B apt
44
you will probably need to compress the file with
44 by Soren Hansen
* Merge from debian unstable, remaining changes:
45
.BR bzip2 (1)
46
(generating a Packages.bz2 file) or
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
47
.BR gzip (1)
1.4.7 by Guillem Jover, Raphaël Hertzog, Guillem Jover, Updated programs translations, Updated man page translations, New scripts translation, Updated scripts translations
[ Raphaël Hertzog ]
48
(generating a Packages.gz file). apt ignores uncompressed Packages
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
49
files except on local access (i.e.
50
.B file://
51
sources).
52
.PP
53
.I binarydir
54
is the name of the tree of the binary packages to process (for example,
55
.BR contrib/binary\-i386 ).
56
It is best to make this relative to the root of the Debian archive,
57
because every Filename field in the new Packages file will start with
58
this string.
59
.PP
60
.I overridefile
61
is the name of a file to read which contains information about how the
1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
62
package fits into the distribution (it can be a compressed file); see
1.1.9 by Guillem Jover, Guillem Jover, Raphael Hertzog, Modestas Vainius, Updated dpkg translations, Updated dselect translations, Updated man page translations, Updated scripts translations
[ Guillem Jover ]
63
.BR deb\-override (5).
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
64
.PP
65
.I pathprefix
66
is an optional string to be prepended to the Filename fields.
67
.PP
68
If more than one version of a package is found only the newest one
69
is included in the output. If they have the same version and only
70
differ in architecture only the first one found is used.
71
.
72
.SH OPTIONS
73
.TP
44 by Soren Hansen
* Merge from debian unstable, remaining changes:
74
.BR \-t ", " \-\-type " \fItype\fP"
75
Scan for *.\fItype\fP packages, instead of *.deb.
76
.TP
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
77
.BR \-u ", " \-\-udeb
44 by Soren Hansen
* Merge from debian unstable, remaining changes:
78
\fBObsolete\fP alias for \fB-tudeb\fP.
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
79
.TP
1.1.9 by Guillem Jover, Guillem Jover, Raphael Hertzog, Modestas Vainius, Updated dpkg translations, Updated dselect translations, Updated man page translations, Updated scripts translations
[ Guillem Jover ]
80
.BR \-e ", " \-\-extra\-override " \fIfile\fP"
1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
81
Scan \fIfile\fP to find supplementary overrides (the file can be
82
compressed). See
1.1.9 by Guillem Jover, Guillem Jover, Raphael Hertzog, Modestas Vainius, Updated dpkg translations, Updated dselect translations, Updated man page translations, Updated scripts translations
[ Guillem Jover ]
83
.BR deb\-extra\-override (5)
84
for more information on its format.
85
.TP
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
86
.BR \-a ", " \-\-arch " \fIarch\fP"
87
Use a pattern consisting of \fI*_all.deb\fP and \fI*_arch.deb\fP instead of
1.4.7 by Guillem Jover, Raphaël Hertzog, Guillem Jover, Updated programs translations, Updated man page translations, New scripts translation, Updated scripts translations
[ Raphaël Hertzog ]
88
scanning for all debs.
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
89
.TP
90
.BR \-m ", " \-\-multiversion
91
Include all found packages in the output.
92
.TP
1.4.2 by Raphael Hertzog
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
93
.BR \-M ", " \-\-medium " \fIid\-string\fP"
94
Add an X-Medium field containing the value \fIid\-string\fP. This field
95
is required if you want to generate \fBPackages.cd\fP files for use
96
by the multicd access method of dselect.
97
.TP
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
98
.BR \-h ", " \-\-help
99
Show the usage message and exit.
100
.TP
101
.BR \-\-version
102
Show the version and exit.
103
.
104
.SH DIAGNOSTICS
105
.B dpkg\-scanpackages
106
outputs the usual self-explanatory errors. It also warns about packages
107
that are in the wrong subdirectory, are duplicated, have a Filename
108
field in their control file, are missing from the override file, or have
109
maintainer substitutions which do not take effect.
110
.
111
.SH SEE ALSO
112
.BR dpkg (1),
113
.BR dselect (1),
114
.BR deb\-override (5),
1.1.9 by Guillem Jover, Guillem Jover, Raphael Hertzog, Modestas Vainius, Updated dpkg translations, Updated dselect translations, Updated man page translations, Updated scripts translations
[ Guillem Jover ]
115
.BR deb\-extra\-override (5),
23 by Ian Jackson
Forward-port Ubuntu changes from feisty, as follows:
116
.BR dpkg\-scansources (1).