{
    "content": [
        {
            "type": "text",
            "text": "# deb (man)\n\n## NAME\n\ndeb - Debian binary package format\n\n## SYNOPSIS\n\nfilename.deb\n\n## DESCRIPTION\n\nThe .deb format is the Debian binary package file format. It is understood since dpkg\n0.93.76, and is generated by default since dpkg 1.2.0 and 1.1.1elf (i386/ELF builds).\n\n## TLDR\n\n- To extract the contents of a .deb file::\n  `ar vx foo.deb  # -&gt; {{file}}`\n- To install .deb file to a debian like system (e.g: Ubuntu)::\n  `sudo dpkg -i foo.deb`\n\n*Source: cheat.sh*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **FORMAT**\n- **MEDIA TYPE** (2 subsections)\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "deb",
        "section": "",
        "mode": "man",
        "summary": "deb - Debian binary package format",
        "synopsis": "filename.deb",
        "tldr_summary": "",
        "tldr_examples": [
            {
                "description": "To extract the contents of a .deb file:",
                "command": "ar vx foo.deb  # -&gt; {{file}}"
            },
            {
                "description": "To install .deb file to a debian like system (e.g: Ubuntu):",
                "command": "sudo dpkg -i foo.deb"
            }
        ],
        "tldr_source": "cheatsh",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "deb-old",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-old/5/json"
            },
            {
                "name": "dpkg-deb",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg-deb/1/json"
            },
            {
                "name": "deb-control",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-control/5/json"
            },
            {
                "name": "deb-conffiles",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-conffiles/5/json"
            },
            {
                "name": "deb-md5sums",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-md5sums/5/json"
            },
            {
                "name": "deb-triggers",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-triggers/5/json"
            },
            {
                "name": "deb-shlibs",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-shlibs/5/json"
            },
            {
                "name": "deb-symbols",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-symbols/5/json"
            },
            {
                "name": "deb-preinst",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-preinst/5/json"
            },
            {
                "name": "deb-postinst",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-postinst/5/json"
            },
            {
                "name": "deb-prerm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-prerm/5/json"
            },
            {
                "name": "deb-postrm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/deb-postrm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "FORMAT",
                "lines": 49,
                "subsections": []
            },
            {
                "name": "MEDIA TYPE",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Current",
                        "lines": 2
                    },
                    {
                        "name": "Deprecated",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "deb - Debian binary package format\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "filename.deb\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The .deb format is the Debian binary package file format. It is understood since dpkg\n0.93.76, and is generated by default since dpkg 1.2.0 and 1.1.1elf (i386/ELF builds).\n\nThe format described here is used since Debian 0.93; details of the old format are described\nin deb-old(5).\n",
                "subsections": []
            },
            "FORMAT": {
                "content": "The file is an ar archive with a magic value of !<arch>.  Only the common ar archive format\nis supported, with no long file name extensions, but with file names containing an optional\ntrailing slash, which limits their length to 15 characters (from the 16 allowed).  File sizes\nare limited to 10 ASCII decimal digits, allowing for up to approximately 9536.74 MiB member\nfiles.\n\nThe tar archives currently allowed are, the old-style (v7) format, the pre-POSIX ustar\nformat, a subset of the GNU format (new style long pathnames and long linknames, supported\nsince dpkg 1.4.1.17; large file metadata since dpkg 1.18.24), and the POSIX ustar format\n(long names supported since dpkg 1.15.0).  Unrecognized tar typeflags are considered an\nerror.  Each tar entry size inside a tar archive is limited to 11 ASCII octal digits,\nallowing for up to 8 GiB tar entries.  The GNU large file metadata support permits 95-bit tar\nentry sizes and negative timestamps, and 63-bit UID, GID and device numbers.\n\nThe first member is named debian-binary and contains a series of lines, separated by\nnewlines. Currently only one line is present, the format version number, 2.0 at the time this\nmanual page was written.  Programs which read new-format archives should be prepared for the\nminor number to be increased and new lines to be present, and should ignore these if this is\nthe case.\n\nIf the major number has changed, an incompatible change has been made and the program should\nstop. If it has not, then the program should be able to safely continue, unless it encounters\nan unexpected member in the archive (except at the end), as described below.\n\nThe second required member is named control.tar.  It is a tar archive containing the package\ncontrol information, either not compressed (supported since dpkg 1.17.6), or compressed with\ngzip (with .gz extension) or xz (with .xz extension, supported since 1.17.6), as a series of\nplain files, of which the file control is mandatory and contains the core control\ninformation, the md5sums, conffiles, triggers, shlibs and symbols files contain optional\ncontrol information, and the preinst, postinst, prerm and postrm files are optional\nmaintainer scripts.  The control tarball may optionally contain an entry for ‘.’, the current\ndirectory.\n\nThe third, last required member is named data.tar.  It contains the filesystem as a tar\narchive, either not compressed (supported since dpkg 1.10.24), or compressed with gzip (with\n.gz extension), xz (with .xz extension, supported since dpkg 1.15.6), bzip2 (with .bz2\nextension, supported since dpkg 1.10.24) or lzma (with .lzma extension, supported since dpkg\n1.13.25).\n\nThese members must occur in this exact order. Current implementations should ignore any\nadditional members after data.tar.  Further members may be defined in the future, and (if\npossible) will be placed after these three. Any additional members that may need to be\ninserted after debian-binary and before control.tar or data.tar and which should be safely\nignored by older programs, will have names starting with an underscore, ‘’.\n\nThose new members which won't be able to be safely ignored will be inserted before data.tar\nwith names starting with something other than underscores, or will (more likely) cause the\nmajor version number to be increased.\n",
                "subsections": []
            },
            "MEDIA TYPE": {
                "content": "",
                "subsections": [
                    {
                        "name": "Current",
                        "content": "application/vnd.debian.binary-package\n"
                    },
                    {
                        "name": "Deprecated",
                        "content": "application/x-debian-package\n\napplication/x-deb\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "deb-old(5), dpkg-deb(1), deb-control(5), deb-conffiles(5), deb-md5sums(5), deb-triggers(5),\ndeb-shlibs(5), deb-symbols(5), deb-preinst(5), deb-postinst(5), deb-prerm(5), deb-postrm(5).\n\n\n\n1.21.1                                       2025-09-09                                       deb(5)",
                "subsections": []
            }
        }
    }
}