dpkg-name.1 3.9 KB

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