词条 | Deb (file format) |
释义 |
| name = Debian package | icon = | logo = | screenshot = | caption = The GNOME icon for deb files | extension = .deb, .udeb | mime = application/vnd.debian.binary-package[1] | type code = | uniform type = | magic = | owner = Debian | released = | latest release version = | latest release date = | genre = Package management system | container for = Software package | contained by = | extended from = ar archive, tarball | extended to = | standard = | url = [https://manpages.debian.org/unstable/deb.5 deb format specification] }} deb is the format, as well as extension of the software package format for the Linux distribution Debian and its derivatives. DesignDebian packages are standard Unix ar archives that include two tar archives. One archive holds the control information and another contains the installable data.[2] dpkg provides the basic functionality for installing and manipulating Debian packages. Generally end users don't manage packages directly with dpkg but instead use the APT package management software or other APT front-ends such as aptitude (nCurses) and synaptic (GTK+).[3]Debian packages can be converted into other package formats and vice versa using alien, and created from source code using checkinstall or the Debian Package Maker.[4] Some core Debian packages are available as udebs ("micro debs"), and are typically used only for bootstrapping a Debian installation. Although these files use the udeb filename extension, they adhere to the same structure specification as ordinary deb files. However, unlike their deb counterparts, udeb packages contain only essential functional files.[5] In particular, documentation files are normally omitted. udeb packages are not installable on a standard Debian system, but are used in Debian-Installer. ImplementationPrior to Debian 0.93 a package consisted of a file header and two concatenated gzip archives.[6] Since Debian 0.93, a deb package is implemented as an ar archive.[7] This archive contains three files in a specific order:[8][9]
Control archiveThe control archive contents can include the following files:
Signed packagesDebian-based distributions support GPG signature verification of signed Debian packages, but most (if not all) have this feature disabled by default.[20] Instead packages are verified by signing the repository metadata (i.e. Release files). The metadata files in turn include checksums for the repository files as a means to verify authenticity of the files.[21][22] Currently there are two different implementations for signing individual packages. The first is done via the debsigs / debsig-verify toolset, which is supported by dpkg.[20][23] The second is done through the dpkg-sig program which is not supported by dpkg, so the packages have to be manually checked with the dpkg-sig program.[20][24][25][26] Both formats add new section(s) to the ar archive to store the signature information, but the formats are not compatible with one another.[20] Neither of the modifications to the package format are listed in the official Debian handbook or man page about the binary package format.[27][8] Adoption
See also
References1. ^{{cite web|title=Media Type Registration for vnd.debian.binary-package|url=http://www.iana.org/assignments/media-types/application/vnd.debian.binary-package|publisher=Internet Assigned Numbers Authority|accessdate=21 May 2014}} 2. ^1 2 {{cite web|url=https://raphaelhertzog.com/2010/09/17/how-to-create-debian-packages-with-alternative-compression-methods/|title=How to create Debian packages with alternative compression methods|author=Raphaël Hertzog|date=17 Sep 2010|website=raphaelhertzog.com|access-date=26 Aug 2016}} 3. ^{{cite web|url=https://wiki.debian.org/Courses/MaintainingPackages/Packages/Management|title=Debian Courses/Maintaining Packages/Packages Management|author=|date=31 Oct 2010|website=debian.org|access-date=26 Aug 2016}} 4. ^{{cite web|url=https://www.debian.org/doc/manuals/developers-reference/apa.en.html#alien|title=Overview of Debian Maintainer Tools / Alien|author=|date=n.d.|website=debian.org|access-date=26 Aug 2016}} 5. ^{{cite web|url=http://d-i.alioth.debian.org/doc/internals/ch03.html|title=Chapter 3. D-I components or udebs|author=|date=n.d.|website=debian.org|access-date=26 Aug 2016}} 6. ^{{cite web|url=https://manpages.debian.org/unstable/deb-old.5|title=deb-old(5) man page: Debian old binary package format|website=manpages.debian.org|access-date=2017-04-23}} 7. ^{{cite web|url=https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.en.pdf#page=7|title=Debian Packaging Tutorial|author=Lucas Nussbaum|date=16 Oct 2014|website=debian.org|access-date=26 Aug 2016}} 8. ^1 {{Cite web|url=https://manpages.debian.org/unstable/deb.5|title=deb(5) man page: Debian binary package format|website=manpages.debian.org|access-date=2017-04-23}} 9. ^1 2 3 {{cite web|url=http://www.tldp.org/HOWTO/Debian-Binary-Package-Building-HOWTO/x60.html|title=Debian Binary Package Building HOWTO/3. Package Structure|author=|date=n.d.|website=tldp.org|access-date=26 Aug 2016}} 10. ^{{cite web|url=https://manpages.debian.org/unstable/deb-control.5|title=deb-control(5) man page: Debian packages' master control file format|author=|website=manpages.debian.org|access-date=2017-04-23}} 11. ^{{cite web|url=https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-binarycontrolfiles|title=Debian Policy Manual Chapter 5 - Control files and their fields|author=|date=30 Mar 2016|website=debian.org|access-date=26 Aug 2016}} 12. ^{{cite web|url=https://www.debian.org/doc/manuals/maint-guide/dreq.en.html#control|title=Debian New Maintainers' Guide - Ch4 Required files under the debian directory|author=Josip Rodin and Osamu Aoki|date=9 Jun 2015|website=debian.org|access-date=26 Aug 2016}} 13. ^{{cite web|url=https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps|title=Debian Policy Manual Ch7 - Declaring relationships between packages|author=|date=30 Mar 2016|website=debian.org|access-date=26 Aug 2016}} 14. ^{{cite web|url=https://debian-handbook.info/browse/stable/sect.package-meta-information.html|title=The Debian Administrator's Handbook - Package Meta-Information|author=|date=n.d.|website=debian-handbook.info|access-date=26 Aug 2016}} 15. ^1 {{cite web|url=https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html|title=Chapter 7 - Basics of the Debian package management system|author=|date=1 May 2015|website=debian.org|access-date=26 Aug 2016}} 16. ^{{cite web|url=https://wiki.debian.org/MaintainerScripts|title=Debian Maintainer Scripts|author=|date=11 Oct 2012|website=debian.org|access-date=26 Aug 2016}} 17. ^{{cite web|url=http://www.fifi.org/doc/debconf-doc/tutorial.html#AEN113|title=The Debconf Programmer's Tutorial - The Config Script|author=Joey Hess|date=n.d.|website=fifi.org|access-date=26 Aug 2016}} 18. ^{{cite web|url=https://manpages.debian.org/unstable/dpkg-shlibdeps.1|title=dpkg-shlibdeps(1) man page|author=|website=manpages.debian.org|access-date=2017-04-23}} 19. ^{{cite web|url=https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-depends|title=Debian Policy - 8.6 Dependencies between the library and other packages|author=|date=30 Mar 2016|website=debian.org|access-date=26 Aug 2016}} 20. ^1 2 3 {{cite web|url=http://blog.packagecloud.io/eng/2014/10/28/howto-gpg-sign-verify-deb-packages-apt-repositories/|title=HOWTO: GPG sign and verify deb packages and APT repositories|author=Joe Damato|date=28 Oct 2014|website=packagecloud.io|access-date=26 Aug 2016}} 21. ^{{cite web|url=http://blog.packagecloud.io/eng/2015/08/04/apt-repository-internals/|title=APT repository internals|author=|date=4 Aug 2015|website=packagecloud.io|access-date=26 Aug 2016}} 22. ^{{cite web|url=https://wiki.debian.org/SecureApt|title=SecureApt - All about secure apt|author=|date=22 Sep 2015|website=debian.org|access-date=26 Aug 2016}} 23. ^{{cite web|url=https://manpages.debian.org/unstable/debsig-verify.1|title=debsig-verify(1) man page|author=|website=manpages.debian.org|access-date=2017-04-23}} 24. ^{{cite web|url=https://manpages.debian.org/unstable/debsigs.1|title=debsigs(1) man page|author=|website=manpages.debian.org|access-date=2017-04-23}} 25. ^{{cite web|url=http://dpkg-sig.turmzimmer.net/ |title=Integrating signatures into Debian archive files |author=Andreas Barth |date=29 Dec 2003 |website=turmzimmer.net |access-date=29 Dec 2003 |deadurl=bot: unknown |archiveurl=https://web.archive.org/web/20060222013602/http://dpkg-sig.turmzimmer.net/ |archivedate=2006-02-22 |df= }} 26. ^{{cite web|url=http://dpkg-sig.turmzimmer.net/policy.html |title=policy for debsigs |author= |date=1 Feb 2004 |website=turmzimmer.net |access-date=1 Feb 2004 |deadurl=bot: unknown |archiveurl=https://web.archive.org/web/20060714233154/http://dpkg-sig.turmzimmer.net/policy.html |archivedate=2006-07-14 |df= }} 27. ^{{cite web|url=https://www.debian.org/doc/manuals/debian-handbook/packaging-system.en.html|title=The Debian Administrator's Handbook - Ch5. Packaging System: Tools and Fundamental Principles|author=|date=n.d.|website=debian.org|access-date=26 Aug 2016}} 28. ^{{cite web|url=http://www.finkproject.org/faq/general.php|title=Fink FAQ - General Questions|author=|date=6 Jun 2015|website=finkproject.org|access-date=26 Aug 2016}} 29. ^{{cite web|url=http://www.finkproject.org/faq/usage-fink.php|title=Fink FAQ - Installing, Using and Maintaining Fink|author=|date=6 Jun 2015|website=finkproject.org|access-date=26 Aug 2016}} 30. ^{{cite web|url=http://www.saurik.com/id/1|title=Bringing Debian APT to the iPhone|author=Jay Freeman|date=n.d.|website=saurik.com|access-date=26 Aug 2016}} 31. ^{{cite web|url=https://www.engadget.com/2008/02/28/debian-style-installation-arrives-on-iphone/|title=Debian-style installation arrives on iPhone|author=Erica Sadun|date=28 Feb 2008|website=engadget.com|access-date=26 Aug 2016}} 32. ^Basics of the Debian package management system External links
5 : Archive formats|Debian|Dpkg|Filename extensions|Ubuntu |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。