deb.5 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. .TH deb 5 "2006-02-28" "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. .BR 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. The control
  43. tarball may optionally contain an entry for
  44. .RB ` . ',
  45. the current directory.
  46. .PP
  47. The third, last required member is named
  48. .BR data.tar.gz .
  49. It contains the filesystem archive as a gzipped tar archive.
  50. .PP
  51. These members must occur in this exact order. Current implementations
  52. should ignore any additional members after
  53. .BR data.tar.gz .
  54. Further members may be defined in the future, and (if possible) will be
  55. placed after these three. Any additional members that may need to be
  56. inserted before
  57. .B data.tar.gz
  58. and which should be safely ignored by older programs, will have names
  59. starting with an underscore,
  60. .RB ` _ '.
  61. .PP
  62. Those new members which won't be able to be safely ignored will be
  63. inserted before
  64. .B data.tar.gz
  65. with names starting with something other than underscores, or will
  66. (more likely) cause the major version number to be increased.
  67. .SH SEE ALSO
  68. .BR deb-old (5),
  69. .BR dpkg-deb (1),
  70. .BR deb-control (5).