Commit | Line | Data |
---|---|---|
1479465f GJ |
1 | .\" dpkg manual page - dpkg-query(1) |
2 | .\" | |
3 | .\" Copyright © 2001 Wichert Akkerman <wakkerma@debian.org> | |
4 | .\" Copyright © 2006-2007 Frank Lichtenheld <djpig@debian.org> | |
5 | .\" Copyright © 2006-2015 Guillem Jover <guillem@debian.org> | |
6 | .\" Copyright © 2008-2011 Raphaël Hertzog <hertzog@debian.org> | |
7 | .\" | |
8 | .\" This is free software; you can redistribute it and/or modify | |
9 | .\" it under the terms of the GNU General Public License as published by | |
10 | .\" the Free Software Foundation; either version 2 of the License, or | |
11 | .\" (at your option) any later version. | |
12 | .\" | |
13 | .\" This is distributed in the hope that it will be useful, | |
14 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | .\" GNU General Public License for more details. | |
17 | .\" | |
18 | .\" You should have received a copy of the GNU General Public License | |
19 | .\" along with this program. If not, see <https://www.gnu.org/licenses/>. | |
20 | . | |
21 | .\"******************************************************************* | |
22 | .\" | |
23 | .\" This file was generated with po4a. Translate the source file. | |
24 | .\" | |
25 | .\"******************************************************************* | |
26 | .TH dpkg\-query 1 %RELEASE_DATE% %VERSION% Dpkg\-sviten | |
27 | .nh | |
28 | .SH NAMN | |
29 | dpkg\-query \- ett verktyg för att fråga dpkg\-databasen | |
30 | . | |
31 | .SH SYNOPS | |
32 | \fBdpkg\-query\fP [\fIflaggor\fP...] \fIåtgärd\fP | |
33 | . | |
34 | .SH BESKRIVNING | |
35 | \fBdpkg\-query\fP är ett verktyg för att visa information om paket i | |
36 | \fBdpkg\fP\-databasen. | |
37 | . | |
38 | .SH KOMMANDON | |
39 | .TP | |
40 | \fB\-l\fP, \fB\-\-list\fP [\fIpaketnamnsmönster\fP ...] | |
41 | List packages matching given pattern. If no \fIpackage\-name\-pattern\fP is | |
42 | given, list all packages in \fI%ADMINDIR%/status\fP, excluding the ones marked | |
43 | as not\-installed (i.e. those which have been previously purged). Normal | |
44 | shell wildcard characters are allowed in \fIpackage\-name\-pattern\fP. Please | |
45 | note you will probably have to quote \fIpackage\-name\-pattern\fP to prevent the | |
46 | shell from performing filename expansion. For example this will list all | |
47 | package names starting with \*(lqlibc6\*(rq: | |
48 | ||
49 | .nf | |
50 | \fBdpkg\-query \-l 'libc6*'\fP | |
51 | .fi | |
52 | ||
53 | De första tre kolumnerna i utdata visar önskad åtgärd, paketstatus och fel, | |
54 | i den ordningen. | |
55 | ||
56 | Önskad åtgärd | |
57 | .nf | |
58 | u = Okänd | |
59 | i = Installera | |
60 | h = Håll | |
61 | r = Ta bort | |
62 | p = Rensa | |
63 | .fi | |
64 | ||
65 | Paketstatus: | |
66 | .nf | |
67 | n = Ej installerat | |
68 | c = Konfigurationsfiler | |
69 | H = Halvinstallerat | |
70 | U = Uppackat | |
71 | F = Halvkonfigurerat | |
72 | W = Utlösare väntad | |
73 | t = Utlösare förestående | |
74 | i = Installerad | |
75 | .fi | |
76 | ||
77 | Felflaggor: | |
78 | .nf | |
79 | <tom> = (ingen) | |
80 | R = Ominstallation krävs | |
81 | .fi | |
82 | ||
83 | En versal status\- eller felbokstav anger att paketet troligen kommer orsaka | |
84 | allvarliga problem. Se \fBdpkg\fP(1) för information om status och flaggor | |
85 | ovan. | |
86 | ||
87 | Utdataformatet för den här flaggan kan inte justeras, men varieras | |
88 | automatiskt för att passa terminalbredden. Det är avsett för mänskliga | |
89 | läsare, och är inte enkelt maskinläsbart. Se \fB\-W\fP (\fB\-\-show\fP) och | |
90 | \fB\-\-showformat\fP för hur du konfigurerar utdataformatet. | |
91 | .TP | |
92 | \fB\-W\fP, \fB\-\-show\fP [\fIpaketnamnsmönster\fP ...] | |
93 | Precis som flaggan \fB\-\-list\fP kommer att paket som matchar det givna mönstret | |
94 | att visas. Utdatat kan dock skräddarsys med flaggan | |
95 | \fB\-\-showformat\fP. Standardutdataformatet är en rad per paket som träffas, där | |
96 | varje rad innehåller namn (utökat med arkitektursbeskrivning för | |
97 | \fBMulti\-Arch\fP \fBsame\fP\-paket) och installerad version av paketet, avdelat med | |
98 | ett tabulatortecken. | |
99 | .TP | |
100 | \fB\-s\fP, \fB\-\-status\fP \fIpaketnamn\fP ... | |
101 | Rapportera status om det angivna paketet. Detta alternativ visar helt | |
102 | enkelt posten i statusdatabasen för installerade paket. Om flera | |
103 | \fIpaketnamn\fP anges avdelas de efterfrågade statusposterna med en tomrad, i | |
104 | samma ordningsföljd som i parameterlistan. | |
105 | .TP | |
106 | \fB\-L\fP, \fB\-\-listfiles\fP \fIpaketnamn\fP ... | |
107 | Listar filer som installerats på ditt system från \fIpaketnamn\fP. Om flera | |
108 | \fIpaketnamn\fP anges avdelas den efterfrågade fillistan med en tomrad, i samma | |
109 | ordningsföljd som anges i parameterlistan. Observera att filer som skapats | |
110 | av paketspecifika installationsskript inte visas. | |
111 | .TP | |
112 | \fB\-\-control\-list\fP \fIpaketnamn\fP | |
113 | List control files installed to your system from \fIpackage\-name\fP (since dpkg | |
114 | 1.16.5). These can be used as input arguments to \fB\-\-control\-show\fP. | |
115 | .TP | |
116 | \fB\-\-control\-show\fP \fIpaketnamn\fP \fIkontrollfil\fP | |
117 | Print the \fIcontrol\-file\fP installed to your system from \fIpackage\-name\fP to | |
118 | the standard output (since dpkg 1.16.5). | |
119 | .TP | |
120 | \fB\-c\fP, \fB\-\-control\-path\fP \fIpaketnamn\fP [\fIcontrol\-filnamn\fP] | |
121 | List paths for control files installed to your system from \fIpackage\-name\fP | |
122 | (since dpkg 1.15.4). If \fIcontrol\-file\fP is specified then only list the | |
123 | path for that control file if it is present. | |
124 | ||
125 | \fBVarning\fP: kommandot är föråldrat eftersom det ger direkt tillgång till den | |
126 | interna dpkg\-databasen, vi ber dig gå över till att istället använda | |
127 | \fB\-\-control\-list\fP och \fB\-\-control\-show\fP för alla tillfällen där dessa | |
128 | kommandon kan ge samma slutresultat. Så länge det finns åtminstone ett | |
129 | tillfälle där kommandot är nödvändigt (dvs. när man måste ta bort ett | |
130 | skadligt postrm\-utvecklarskript), och det inte finns någon bra lösning för | |
131 | det, kommer kommandot inte att tas bort. | |
132 | .TP | |
133 | \fB\-S\fP, \fB\-\-search\fP \fIfilnamnssökmönster\fP ... | |
134 | Search for packages that own files corresponding to the given pattern. | |
135 | Standard shell wildcard characters can be used in the pattern, where | |
136 | asterisk (\fB*\fP) and question mark (\fB?\fP) will match a slash, and blackslash | |
137 | (\fB\e\fP) will be used as an escape character. | |
138 | ||
139 | If the first character in the \fIfilename\-search\-pattern\fP is none of | |
140 | ‘\fB*[?/\fP’ then it will be considered a substring match and will be | |
141 | implicitly surrounded by ‘\fB*\fP’ (as in \fB*\fP\fIfilename\-search\-pattern\fP\fB*\fP). | |
142 | If the subsequent string contains any of ‘\fB*[?\e\fP’, then it will handled | |
143 | like a glob pattern, otherwise any trailing ‘\fB/\fP’ or ‘\fB/.\fP’ will be | |
144 | removed and a literal path lookup will be performed. | |
145 | ||
146 | This command will not list extra files created by maintainer scripts, nor | |
147 | will it list alternatives. | |
148 | .TP | |
149 | \fB\-p\fP, \fB\-\-print\-avail\fP \fIpaketnamn\fP | |
150 | Visar information om \fIpaketnamn\fP, enligt vad som finns i | |
151 | \fI%ADMINDIR%/available\fP. Om flera \fIpaketnamn\fP anges avdelas de efterfrågade | |
152 | posterna ur \fIavailable\fP\-filen med en tomrad, med samma ordningsföljd som | |
153 | anges i parameterlistan. | |
154 | ||
155 | Använder du ett APT\-baserat skal bör du istället använda \fBapt\-cache show\fP | |
156 | \fIpaketnamn\fP, då \fIavailable\fP\-filen endast àjourförs om \fBdselect\fP används. | |
157 | .TP | |
158 | \fB\-?\fP, \fB\-\-help\fP | |
159 | Visar hjälpskärm och avslutar. | |
160 | .TP | |
161 | \fB\-\-version\fP | |
162 | Visar version och avslutar. | |
163 | . | |
164 | .SH FLAGGOR | |
165 | .TP | |
166 | \fB\-\-admindir=\fP\fIkat\fP | |
167 | Change the location of the \fBdpkg\fP database. The default location is | |
168 | \fI%ADMINDIR%\fP. | |
169 | .TP | |
170 | \fB\-\-load\-avail\fP | |
171 | Also load the available file when using the \fB\-\-show\fP and \fB\-\-list\fP | |
172 | commands, which now default to only querying the status file (since dpkg | |
173 | 1.16.2). | |
174 | .TP | |
175 | \fB\-f\fP, \fB\-\-showformat=\fP\fIformat\fP | |
176 | Flaggan används för att ange formatet på utdata som skapas av | |
177 | \fB\-\-show\fP. Formatet är en sträng som matas ut för varje paket i listan. | |
178 | ||
179 | I formatsträngen inleds följande styrsekvenser med “\fB\e\fP”: | |
180 | ||
181 | .nf | |
182 | \fB\en\fP radmatning | |
183 | \fB\er\fP vagnretur | |
184 | \fB\et\fP tabulator | |
185 | .fi | |
186 | ||
187 | “\fB\e\fP” före ett annat tecken undertrycken en speciell betydelse för det | |
188 | efterföljande tecknet, vilket är kan användas för “\fB\e\fP” och “\fB$\fP”. | |
189 | ||
190 | Paketinformation kan läggas in genom att sätta in variabelreferenser till | |
191 | paketfält, på syntaxen “\fB${\fP\fIfield\fP[\fB;\fP\fIwidth\fP]\fB}\fP”. Fält skrivs | |
192 | högerjusterade såvida inte bredden är negativ i vilket fall vänsterjustering | |
193 | kommer att användas. Följande \fIfält\fP stöds, men de är inte nödvändigtvis | |
194 | tillgängliga i statusfilen (endast interna fält och fält som finns i | |
195 | binärpaketet hamnar där): | |
196 | ||
197 | .nf | |
198 | \fBArchitecture\fP | |
199 | \fBBugs\fP | |
200 | \fBConffiles\fP (internt) | |
201 | \fBConfig\-Version\fP (internt) | |
202 | \fBConflicts\fP | |
203 | \fBBreaks\fP | |
204 | \fBDepends\fP | |
205 | \fBDescription\fP | |
206 | \fBEnhances\fP | |
207 | \fBEssential\fP | |
208 | \fBFilename\fP (internt, skalrelaterat) | |
209 | \fBHomepage\fP | |
210 | \fBInstalled\-Size\fP | |
211 | \fBMD5sum\fP (internt, skalrelaterat) | |
212 | \fBMSDOS\-Filename\fP (internt, skalrelaterat) | |
213 | \fBMaintainer\fP | |
214 | \fBOrigin\fP | |
215 | \fBPackage\fP | |
216 | \fBPre\-Depends\fP | |
217 | \fBPriority\fP | |
218 | \fBProvides\fP | |
219 | \fBRecommends\fP | |
220 | \fBReplaces\fP | |
221 | \fBRevision\fP (föråldrat) | |
222 | \fBSection\fP | |
223 | \fBSize\fP (internt, skalrelaterat) | |
224 | \fBSource\fP | |
225 | \fBStatus\fP (internt) | |
226 | \fBSuggests\fP | |
227 | \fBTag\fP (normalt inte i .deb, utan i arkivets Packages\-filer) | |
228 | \fBTriggers\-Awaited\fP (internt) \fBTriggers\-Pending\fP (internt) \fBVersion\fP | |
229 | .fi | |
230 | ||
231 | Följande är virtuella fält, genererade av \fBdpkg\-query\fP från värden från | |
232 | adnra fält (observera att dessa inte är giltiga namn för fält i | |
233 | kontrollfiler): | |
234 | .RS | |
235 | .TP | |
236 | \fBbinary:Package\fP | |
237 | It contains the binary package name with a possible architecture qualifier | |
238 | like “libc6:amd64” (since dpkg 1.16.2). An architecture qualifier will be | |
239 | present to make the package name unambiguous, for example if the package has | |
240 | a \fBMulti\-Arch\fP field with a value of \fBsame\fP or the package is of a foreign | |
241 | architecture. | |
242 | .TP | |
243 | \fBbinary:Summary\fP | |
244 | Innehåller paketets korta beskrivning (sedan dpkg 1.16.2). | |
245 | .TP | |
246 | \fBdb:Status\-Abbrev\fP | |
247 | It contains the abbreviated package status (as three characters), such as | |
248 | “ii ” or “iHR” (since dpkg 1.16.2). See the \fB\-\-list\fP command description | |
249 | for more details. | |
250 | .TP | |
251 | \fBdb:Status\-Want\fP | |
252 | Innehåller paketets önskade status, del av Status\-fältet (sedan dpkg | |
253 | 1.17.11). | |
254 | .TP | |
255 | \fBdb:Status\-Status\fP | |
256 | Innehåller paketets statusord, del av Status\-fältet (sedan dpkg 1.17.11). | |
257 | .TP | |
258 | \fBdb:Status\-Eflag\fP | |
259 | Innehåller paketets statusfelflagga, del av Status\-fältet (sedan dpkg | |
260 | 1.17.11). | |
261 | .TP | |
262 | \fBsource:Package\fP | |
263 | Innehåller källkodsnamnet för binärpaketet (sedan dpkg 1.16.2). | |
264 | .TP | |
265 | \fBsource:Version\fP | |
266 | Innehåller källkodsversionen för binärpaketet (sedan dpkg 1.16.2) | |
267 | .TP | |
268 | \fBsource:Upstream\-Version\fP | |
269 | It contains the source package upstream version for this binary package | |
270 | (since dpkg 1.18.16) | |
271 | .RE | |
272 | .IP | |
273 | Standardformatet är “\fB${binary:Package}\et${Version}\en\fP”. Alla andra fält | |
274 | som finns i statusfilen (även användardefinierade fält) kan faktiskt också | |
275 | hämtas. De visas dock som de är, ingen konvertering eller felkorrigering | |
276 | görs på dem. För att hämta namnet på paketansvarig och installerad version | |
277 | av \fBdpkg\fP och kan du köra: | |
278 | ||
279 | .nf | |
280 | \fBdpkg\-query \-W \-f='${binary:Package} ${Version}\et${Maintainer}\en' dpkg\fP | |
281 | .fi | |
282 | . | |
283 | .SH RETURVÄRDE | |
284 | .TP | |
285 | \fB0\fP | |
286 | Den önskade frågan utfördes utan fel. | |
287 | .TP | |
288 | \fB1\fP | |
289 | The requested query failed either fully or partially, due to no file or | |
290 | package being found (except for \fB\-\-control\-path\fP, \fB\-\-control\-list\fP and | |
291 | \fB\-\-control\-show\fP were such errors are fatal). | |
292 | .TP | |
293 | \fB2\fP | |
294 | Fatal or unrecoverable error due to invalid command\-line usage, or | |
295 | interactions with the system, such as accesses to the database, memory | |
296 | allocations, etc. | |
297 | . | |
298 | .SH MILJÖVARIABLER | |
299 | .TP | |
300 | \fBDPKG_ADMINDIR\fP | |
301 | Om satt, och flaggan \fB\-\-admindir\fP inte har angivits, används värdet som | |
302 | datakatalog för \fBdpkg\fP. | |
303 | .TP | |
304 | \fBCOLUMNS\fP | |
305 | Inställningen påverkar utdata från kommandot \fB\-\-list\fP genom att ändra | |
306 | bredden på dess utdata. | |
307 | . | |
308 | .SH "SE ÄVEN" | |
309 | \fBdpkg\fP(1). | |
310 | ||
311 | .SH ÖVERSÄTTNING | |
312 | Peter Krefting och Daniel Nylander. |