dpkg-name.1 3.7 KB

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