dpkg (1.18.25) stretch; urgency=medium
[dpkg] / man / it / dpkg-name.man
CommitLineData
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% "suite dpkg"
25.nh
26.SH NOME
27dpkg\-name \- rinomina i pacchetti Debian in nomi completi di pacchetto
28.
29.SH SINTASSI
30\fBdpkg\-name\fP [\fIopzione\fP...] [\fB\-\-\fP] \fIfile\fP...
31.
32.SH DESCRIZIONE
33.PP
34Questa pagina di manuale documenta il programma \fBdpkg\-name\fP, che fornisce
35un modo facile per rinominare i pacchetti \fBDebian\fP nei loro nomi di
36pacchetto completi. Un nome di pacchetto completo ha la forma
37\fIpacchetto\fP\fB_\fP\fIversione\fP\fB_\fP\fIarchitettura\fP\fB.\fP\fItipo\-pacchetto\fP, così
38come specificato nel file control del pacchetto. La parte \fIversione\fP del
39nome del file è formata dall'informazione sulla versione originale del
40software seguita facoltativamente da un trattino e dalle informazioni sulla
41revisione. La parte \fItipo\-pacchetto\fP viene presa dal campo «package\-type»
42se esiste, altrimenti viene usato il valore predefinito \fBdeb\fP.
43.
44.SH OPZIONI
45.TP
46\fB\-a\fP, \fB\-\-no\-architecture\fP
47Il nome del file di destinazione non conterrà le informazioni
48sull'architettura.
49.TP
50\fB\-k\fP, \fB\-\-symlink\fP
51Crea un collegamento simbolico, invece di spostare.
52.TP
53\fB\-o\fP, \fB\-\-overwrite\fP
54I file esistenti verranno sovrascritti se hanno lo stesso nome del file di
55destinazione.
56.TP
57\fB\-s\fP, \fB\-\-subdir\fP [\fIdir\fP]
58Files will be moved into a subdirectory. If the directory given as argument
59exists the files will be moved into that directory otherwise the name of the
60target directory is extracted from the section field in the control part of
61the package. The target directory will be
62«unstable/binary\-\fIarchitecture\fP/\fIsection\fP». If the section is not found
63in the control, then \fBno\-section\fP is assumed, and in this case, as well as
64for sections \fBnon\-free\fP and \fBcontrib\fP the target directory is
65«\fIsection\fP/binary\-\fIarchitecture\fP». The section field is not required so a
66lot of packages will find their way to the \fBno\-section\fP area. Use this
67option with care, it's messy.
68.TP
69\fB\-c\fP, \fB\-\-create\-dir\fP
70Questa opzione può essere usata insieme all'opzione \fB\-s\fP. Se non viene
71trovata una directory target, verrà creata automaticamente. \fBUsare questa
72opzione con cautela.\fP
73.TP
74\fB\-?\fP, \fB\-\-help\fP
75Mostra il messaggio sull'uso ed esce.
76.TP
77\fB\-v\fP, \fB\-\-version\fP
78Mostra la versione ed esce.
79.
80.SH BUG
81Alcuni pacchetti non seguono la struttura dei nomi
82\fIpacchetto\fP\fB_\fP\fIversione\fP\fB_\fP\fIarchitettura\fP\fB.deb\fP. I pacchetti
83rinominati con \fBdpkg\-name\fP seguiranno questa struttura. Generalmente ciò
84non ha effetto su come i pacchetti vengono installati da \fBdselect\fP(1) o
85\fBdpkg\fP(1), ma altri strumenti di installazione possono fare affidamento su
86questa struttura dei nomi.
87.
88.SH ESEMPI
89.TP
90\fBdpkg\-name pinco\-pallo.deb\fP
91The file \fBbar\-foo.deb\fP will be renamed to bar\-foo_1.0\-2_i386.deb or
92something similar (depending on whatever information is in the control part
93of \fBbar\-foo.deb\fP).
94.TP
95\fBfind /root/debian/ \-name '*.deb' | xargs \-n 1 dpkg\-name \-a\fP
96All files with the extension \fBdeb\fP in the directory /root/debian and its
97subdirectory's will be renamed by \fBdpkg\-name\fP if required into names with
98no architecture information.
99.TP
100\fBfind \-name '*.deb' | xargs \-n 1 dpkg\-name \-a \-o \-s \-c\fP
101\fBNon usarlo.\fP Se lo si fa, il proprio archivio verrà completamente
102stravolto perché molti pacchetti vengono forniti senza l'informazione sulla
103sezione. \fBNon usarlo.\fP
104.TP
105\fBdpkg\-deb \-\-build debian\-tmp && dpkg\-name \-o \-s .. debian\-tmp.deb\fP
106Questo può essere usato quando si creano nuovi pacchetti.
107.
108.SH "VEDERE ANCHE"
109\fBdeb\fP(5), \fBdeb\-control\fP(5), \fBdpkg\fP(1), \fBdpkg\-deb\fP(1), \fBfind\fP(1),
110\fBxargs\fP(1).