dpkg-name.1 3.7 KB

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