deb.5 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .TH DEB 5 "January 2000" "Debian Project" "Debian"
  2. .SH NAME
  3. deb \- Debian binary package format
  4. .SH SYNOPSIS
  5. .IB filename .deb
  6. .SH DESCRIPTION
  7. The
  8. .B .deb
  9. format is the Debian binary package file format. It is understood by
  10. dpkg 0.93.76 and later, and is generated by default by all versions
  11. of dpkg since 1.2.0 and all i386/ELF versions since 1.1.1elf.
  12. .PP
  13. The format described here is used since Debian 0.93; details of the
  14. old format are described in
  15. .BR deb-old (5).
  16. .SH FORMAT
  17. The file is an
  18. .B ar
  19. archive with a magic number of
  20. .BR !<arch> .
  21. .PP
  22. The first member is named
  23. .B debian-binary
  24. and contains a series of lines, separated by newlines. Currently only
  25. one line is present, the format version number,
  26. .BR 2.0
  27. at the time this manual page was written.
  28. Programs which read new-format archives should be prepared for the
  29. minor number to be increased and new lines to be present, and should
  30. ignore these if this is the case.
  31. .PP
  32. If the major number has changed, an incompatible change has been made
  33. and the program should stop. If it has not, then the program should
  34. be able to safely continue, unless it encounters an unexpected member
  35. in the archive (except at the end), as described below.
  36. .PP
  37. The second required member is named
  38. .B control.tar.gz .
  39. It is a gzipped tar archive containing the package control information,
  40. as a series of plain files, of which the file
  41. .B control
  42. is mandatory and contains the core control information. Please see the
  43. .I "Debian Packaging Manual, section 2.2"
  44. for details of these files. The control tarball may optionally contain
  45. an entry for
  46. .RB ` . ',
  47. the current directory.
  48. .PP
  49. The third, last required member is named
  50. .B data.tar.gz .
  51. It contains the filesystem archive as a gzipped tar archive.
  52. .PP
  53. These members must occur in this exact order. Current implementations
  54. should ignore any additional members after
  55. .BR data.tar.gz .
  56. Further members may be defined in the future, and (if possible) will be
  57. placed after these three. Any additional members that may need to be
  58. inserted before
  59. .B data.tar.gz
  60. and which should be safely ignored by older programs, will have names
  61. starting with an underscore,
  62. .RB ` _ '.
  63. .PP
  64. Those new members which won't be able to be safely ignored will be
  65. inserted before
  66. .B data.tar.gz
  67. with names starting with something other than underscores, or will
  68. (more likely) cause the major version number to be increased.
  69. .SH SEE ALSO
  70. .BR deb-old (5),
  71. .BR dpkg-deb (1),
  72. .BR deb-control (5),
  73. .IR "Debian Packaging Manual".