dpkg-name.1 3.6 KB

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