Commit | Line | Data |
---|---|---|
1479465f GJ |
1 | .\" dpkg manual page - dpkg-name(1) |
2 | .\" | |
3 | .\" Copyright © 1995-1996 Erick Branderhorst | |
4 | .\" Copyright © 2007-2013, 2015 Guillem Jover <guillem@debian.org> | |
5 | .\" | |
6 | .\" This is free software; you can redistribute it and/or modify | |
7 | .\" it under the terms of the GNU General Public License as published by | |
8 | .\" the Free Software Foundation; either version 2 of the License, or | |
9 | .\" (at your option) any later version. | |
10 | .\" | |
11 | .\" This is distributed in the hope that it will be useful, | |
12 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | .\" GNU General Public License for more details. | |
15 | .\" | |
16 | .\" You should have received a copy of the GNU General Public License | |
17 | .\" along with this program. If not, see <https://www.gnu.org/licenses/>. | |
18 | . | |
19 | .\"******************************************************************* | |
20 | .\" | |
21 | .\" This file was generated with po4a. Translate the source file. | |
22 | .\" | |
23 | .\"******************************************************************* | |
24 | .TH dpkg\-name 1 %RELEASE_DATE% %VERSION% Dpkg\-sviten | |
25 | .nh | |
26 | .SH NAMN | |
27 | dpkg\-name \- byt namnet på Debianpaket till det fullständiga paketnamnet | |
28 | . | |
29 | .SH SYNOPS | |
30 | \fBdpkg\-name\fP [\fIflagga\fP...] [\fB\-\-\fP] \fIfil\fP... | |
31 | . | |
32 | .SH BESKRIVNING | |
33 | .PP | |
34 | Manualsidan dokumenterar programmet \fBdpkg\-name\fP, vilket tillhandahåller ett | |
35 | enkelt sätt att byta namn på \fBDebian\fPpaket till deras fullständiga | |
36 | paketnamn. Ett fullständigt paketnamn består av | |
37 | \fIpaket\fP\fB_\fP\fIversion\fP\fB_\fP\fIarkitektur\fP\fB.\fP\fIpakettyp\fP och anges av | |
38 | control\-filen i paketet. \fIVersion\fP\-delen av filnamnet består av | |
39 | uppströmsversionsinformation och kan eventuellt följas av ett bindestreck | |
40 | och revisionsinformationen. \fIPakettyp\fP\-delen kommer från fältet | |
41 | \fIpackage\-type\fP om det finns, annars \fBdeb\fP. | |
42 | . | |
43 | .SH FLAGGOR | |
44 | .TP | |
45 | \fB\-a\fP, \fB\-\-no\-architecture\fP | |
46 | Destinationsfilnamnet kommer inte att innehålla information om arkitektur. | |
47 | .TP | |
48 | \fB\-k\fP, \fB\-\-symlink\fP | |
49 | Skapa en symbolisk länk istället för att flytta. | |
50 | .TP | |
51 | \fB\-o\fP, \fB\-\-overwrite\fP | |
52 | Befintliga filer kommer att skrivas över om de har samma namn som | |
53 | destinationsfilnamnet. | |
54 | .TP | |
55 | \fB\-s\fP, \fB\-\-subdir\fP [\fIkatalog\fP] | |
56 | Files will be moved into a subdirectory. If the directory given as argument | |
57 | exists the files will be moved into that directory otherwise the name of the | |
58 | target directory is extracted from the section field in the control part of | |
59 | the package. The target directory will be | |
60 | «unstable/binary\-\fIarchitecture\fP/\fIsection\fP». If the section is not found | |
61 | in the control, then \fBno\-section\fP is assumed, and in this case, as well as | |
62 | for sections \fBnon\-free\fP and \fBcontrib\fP the target directory is | |
63 | «\fIsection\fP/binary\-\fIarchitecture\fP». The section field is not required so a | |
64 | lot of packages will find their way to the \fBno\-section\fP area. Use this | |
65 | option with care, it's messy. | |
66 | .TP | |
67 | \fB\-c\fP, \fB\-\-create\-dir\fP | |
68 | Flaggan kan användas tillsammans med \fB\-s\fP\-flaggan. Om en målkatalog inte | |
69 | existerar kommer den att skapas automatiskt. \fBAnvänd denna flagga | |
70 | försiktigt.\fP | |
71 | .TP | |
72 | \fB\-?\fP, \fB\-\-help\fP | |
73 | Visar hjälpskärm och avslutar. | |
74 | .TP | |
75 | \fB\-v\fP, \fB\-\-version\fP | |
76 | Visar version och avslutar. | |
77 | . | |
78 | .SH PROGRAMFEL | |
79 | Vissa paket följer inte namnstrukturen | |
80 | \fIpaket\fP\fB_\fP\fIversion\fP\fB_\fP\fIarkitektur\fP\fB.deb\fP. Paket vars namn ändrats med | |
81 | \fBdpkg\-name\fP kommer följa denna struktur. Normalt påverkar detta inte hur | |
82 | \fBdselect\fP(1)/\fBdpkg\fP(1) installerar paket, men vissa andra | |
83 | installationsverktyg kan vara beroende av denna namngivningsstruktur. | |
84 | . | |
85 | .SH EXEMPEL | |
86 | .TP | |
87 | \fBdpkg\-name bar\-foo.deb\fP | |
88 | The file \fBbar\-foo.deb\fP will be renamed to bar\-foo_1.0\-2_i386.deb or | |
89 | something similar (depending on whatever information is in the control part | |
90 | of \fBbar\-foo.deb\fP). | |
91 | .TP | |
92 | \fBfind /root/debian/ \-name '*.deb' | xargs \-n 1 dpkg\-name \-a\fP | |
93 | All files with the extension \fBdeb\fP in the directory /root/debian and its | |
94 | subdirectory's will be renamed by \fBdpkg\-name\fP if required into names with | |
95 | no architecture information. | |
96 | .TP | |
97 | \fBfind \-name '*.deb' | xargs \-n 1 dpkg\-name \-a \-o \-s \-c\fP | |
98 | \fBGör inte så här.\fP Ditt arkiv kommer att röras till helt och hållet | |
99 | eftersom många paket inte har någon sektionsinformation. \fBGör inte så här.\fP | |
100 | .TP | |
101 | \fBdpkg\-deb \-\-build debian\-tmp && dpkg\-name \-o \-s .. debian\-tmp.deb\fP | |
102 | Kan användas när nya paket byggs. | |
103 | . | |
104 | .SH "SE ÄVEN" | |
105 | \fBdeb\fP(5), \fBdeb\-control\fP(5), \fBdpkg\fP(1), \fBdpkg\-deb\fP(1), \fBfind\fP(1), | |
106 | \fBxargs\fP(1). | |
107 | .SH ÖVERSÄTTNING | |
108 | Peter Krefting och Daniel Nylander. |