dpkg-name.1 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .\" This is an -*- nroff -*- source file.
  2. .\" dpkg-name and this manpage are Copyright © 1995,1996 by Erick Branderhorst.
  3. .\"
  4. .\" This is free software; see the GNU General Public Licence version 2
  5. .\" or later for copying conditions. There is NO warranty.
  6. .TH dpkg\-name 1 "2011-08-14" "Debian Project" "dpkg utilities"
  7. .SH NAME
  8. dpkg\-name \- rename Debian packages to full package names
  9. .
  10. .SH SYNOPSIS
  11. .B dpkg\-name
  12. .RI [ option ...]
  13. .RB [ \-\- ]
  14. .IR file ...
  15. .
  16. .SH DESCRIPTION
  17. .PP
  18. This manual page documents the
  19. .B dpkg\-name
  20. program which provides an easy way to rename
  21. .B Debian
  22. packages into their full package names. A full package name consists of
  23. .IB package _ version _ architecture . package-type
  24. as specified in the control file of the package. The \fIversion\fP part
  25. of the filename
  26. consists of the upstream version information optionally followed by a
  27. hyphen and the revision information. The \fIpackage-type\fP part comes
  28. from that field if present or fallbacks to \fBdeb\fP.
  29. .
  30. .SH OPTIONS
  31. .TP
  32. .BR \-a ", " \-\-no\-architecture
  33. The destination filename will not have the architecture information.
  34. .TP
  35. .BR \-k ", " \-\-symlink
  36. Create a symlink, instead of moving.
  37. .TP
  38. .BR \-o ", " \-\-overwrite
  39. Existing files will be overwritten if they have the same name as the
  40. destination filename.
  41. .TP
  42. .BR \-s ", " \-\-subdir " [\fIdir\fP]"
  43. Files will be moved into a subdirectory. If the directory given as argument exists
  44. the files will be moved into that directory otherwise the name of
  45. the target directory is extracted from the section field in the
  46. control part of the package. The target directory will be
  47. `unstable/binary\-\fIarchitecture\fP/\fIsection\fP'. If the section is
  48. not found in the control, then `no\-section' is assumed, and in this case,
  49. as well as for sections `non\-free' and `contrib' the target directory is
  50. `\fIsection\fP/binary\-\fIarchitecture\fP'. The section field isn't required
  51. so a lot of packages will find their way to the `no\-section' area. Use
  52. this option with care, it's messy.
  53. .TP
  54. .BR \-c ", " \-\-create\-dir
  55. This option can used together with the \-s option. If a target
  56. directory isn't found it will be created automatically.
  57. .B Use this option with care.
  58. .TP
  59. .BR \-h ", " \-\-help
  60. Show the usage message and exit.
  61. .TP
  62. .BR \-v ", " \-\-version
  63. Show the version and exit.
  64. .
  65. .SH EXAMPLES
  66. .TP
  67. .B dpkg\-name bar\-foo.deb
  68. The file `bar\-foo.deb' will be renamed to bar\-foo_1.0\-2_i386.deb or
  69. something similar (depending on whatever information is in the control
  70. part of `bar\-foo.deb').
  71. .TP
  72. .B find /root/debian/ \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a
  73. All files with the extension `deb' in the directory /root/debian and its
  74. subdirectory's will be renamed by dpkg\-name if required into names with no
  75. architecture information.
  76. .TP
  77. .B find \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a \-o \-s \-c
  78. .B Don't do this.
  79. Your archive will be messed up completely because a lot of packages
  80. don't come with section information.
  81. .B Don't do this.
  82. .TP
  83. .B dpkg \-\-build debian\-tmp && dpkg\-name \-o \-s .. debian\-tmp.deb
  84. This can be used when building new packages.
  85. .
  86. .SH BUGS
  87. Some packages don't follow the name structure
  88. .IB package _ version _ architecture .deb\fR.\fP
  89. Packages renamed by dpkg\-name
  90. will follow this structure. Generally this will have no impact on how
  91. packages are installed by
  92. .BR dselect (1)/ dpkg (1),
  93. but other installation tools
  94. might depend on this naming structure.
  95. .
  96. .SH SEE ALSO
  97. .BR deb (5),
  98. .BR deb\-control (5),
  99. .BR dpkg (1),
  100. .BR dpkg\-deb (1),
  101. .BR find (1),
  102. .BR xargs (1).
  103. .
  104. .SH AUTHOR
  105. Copyright \(co 1995,1996 Erick Branderhorst
  106. .sp
  107. This is free software; see the GNU General Public Licence version 2 or
  108. later for copying conditions. There is NO WARRANTY.