dpkg-name.1 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. .
  64. .SH EXAMPLES
  65. .TP
  66. .B dpkg\-name bar\-foo.deb
  67. The file `bar\-foo.deb' will be renamed to bar\-foo_1.0\-2_i386.deb or
  68. something similar (depending on whatever information is in the control
  69. part of `bar\-foo.deb').
  70. .TP
  71. .B find /root/debian/ \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a
  72. All files with the extension `deb' in the directory /root/debian and its
  73. subdirectory's will be renamed by dpkg\-name if required into names with no
  74. architecture information.
  75. .TP
  76. .B find \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a \-o \-s \-c
  77. .B Don't do this.
  78. Your archive will be messed up completely because a lot of packages
  79. don't come with section information.
  80. .B Don't do this.
  81. .TP
  82. .B dpkg \-\-build debian\-tmp && dpkg\-name \-o \-s .. debian\-tmp.deb
  83. This can be used when building new packages.
  84. .
  85. .SH BUGS
  86. Some packages don't follow the name structure
  87. <package>_<version>_<architecture>.deb. Packages renamed by dpkg\-name
  88. will follow this structure. Generally this will have no impact on how
  89. packages are installed by
  90. .BR dselect (1)/
  91. .BR dpkg (1),
  92. but other installation tools
  93. might depend on this naming structure.
  94. .
  95. .SH SEE ALSO
  96. .BR deb (5),
  97. .BR deb\-control (5),
  98. .BR dpkg (1),
  99. .BR dpkg\-deb (1),
  100. .BR find (1),
  101. .BR xargs (1).
  102. .
  103. .SH AUTHOR
  104. Copyright \(co 1995,1996 Erick Branderhorst
  105. .sp
  106. This is free software; see the GNU General Public Licence version 2 or
  107. later for copying conditions. There is NO WARRANTY.