{
    "content": [
        {
            "type": "text",
            "text": "# apt(8) (man)\n\n**Summary:** apt - command-line interface\n\n**Synopsis:** apt [-h] [-o=configstring] [-c=configfile] [-t=targetrelease] [-a=architecture] {list |\nsearch | show | update | install pkg [{=pkgversionnumber | /targetrelease}]...  |\nremove pkg...  | upgrade | full-upgrade | edit-sources | {-v | --version} |\n{-h | --help}}\n\n## See Also\n\n- apt-get(8)\n- apt-cache(8)\n- sources.list(5)\n- apt.conf(5)\n- apt-config(8)\n- aptpreferences(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (5 lines)\n- **DESCRIPTION** (71 lines) — 1 subsections\n  - list (9 lines)\n- **SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS** (10 lines)\n- **SEE ALSO** (3 lines)\n- **DIAGNOSTICS** (2 lines)\n- **BUGS** (3 lines)\n- **AUTHOR** (1 lines) — 1 subsections\n  - APT team (1 lines)\n- **NOTES** (6 lines)\n\n## Full Content\n\n### NAME\n\napt - command-line interface\n\n### SYNOPSIS\n\napt [-h] [-o=configstring] [-c=configfile] [-t=targetrelease] [-a=architecture] {list |\nsearch | show | update | install pkg [{=pkgversionnumber | /targetrelease}]...  |\nremove pkg...  | upgrade | full-upgrade | edit-sources | {-v | --version} |\n{-h | --help}}\n\n### DESCRIPTION\n\napt provides a high-level commandline interface for the package management system. It is\nintended as an end user interface and enables some options better suited for interactive\nusage by default compared to more specialized APT tools like apt-get(8) and apt-cache(8).\n\nMuch like apt itself, its manpage is intended as an end user interface and as such only\nmentions the most used commands and options partly to not duplicate information in multiple\nplaces and partly to avoid overwhelming readers with a cornucopia of options and details.\n\nupdate (apt-get(8))\nupdate is used to download package information from all configured sources. Other\ncommands operate on this data to e.g. perform package upgrades or search in and display\ndetails about all packages available for installation.\n\nupgrade (apt-get(8))\nupgrade is used to install available upgrades of all packages currently installed on the\nsystem from the sources configured via sources.list(5). New packages will be installed if\nrequired to satisfy dependencies, but existing packages will never be removed. If an\nupgrade for a package requires the removal of an installed package the upgrade for this\npackage isn't performed.\n\nfull-upgrade (apt-get(8))\nfull-upgrade performs the function of upgrade but will remove currently installed\npackages if this is needed to upgrade the system as a whole.\n\ninstall, reinstall, remove, purge (apt-get(8))\nPerforms the requested action on one or more packages specified via regex(7), glob(7) or\nexact match. The requested action can be overridden for specific packages by appending a\nplus (+) to the package name to install this package or a minus (-) to remove it.\n\nA specific version of a package can be selected for installation by following the package\nname with an equals (=) and the version of the package to select. Alternatively the\nversion from a specific release can be selected by following the package name with a\nforward slash (/) and codename (bullseye, bookworm, sid ...) or suite name (stable,\ntesting, unstable). This will also select versions from this release for dependencies of\nthis package if needed to satisfy the request.\n\nRemoving a package removes all packaged data, but leaves usually small (modified) user\nconfiguration files behind, in case the remove was an accident. Just issuing an\ninstallation request for the accidentally removed package will restore its function as\nbefore in that case. On the other hand you can get rid of these leftovers by calling\npurge even on already removed packages. Note that this does not affect any data or\nconfiguration stored in your home directory.\n\nautoremove (apt-get(8))\nautoremove is used to remove packages that were automatically installed to satisfy\ndependencies for other packages and are now no longer needed as dependencies changed or\nthe package(s) needing them were removed in the meantime.\n\nYou should check that the list does not include applications you have grown to like even\nthough they were once installed just as a dependency of another package. You can mark\nsuch a package as manually installed by using apt-mark(8). Packages which you have\ninstalled explicitly via install are also never proposed for automatic removal.\n\nsatisfy (apt-get(8))\nsatisfy satisfies dependency strings, as used in Build-Depends. It also handles\nconflicts, by prefixing an argument with \"Conflicts: \".\n\nExample: apt satisfy \"foo, bar (>= 1.0)\" \"Conflicts: baz, fuzz\"\n\nsearch (apt-cache(8))\nsearch can be used to search for the given regex(7) term(s) in the list of available\npackages and display matches. This can e.g. be useful if you are looking for packages\nhaving a specific feature. If you are looking for a package including a specific file try\napt-file(1).\n\nshow (apt-cache(8))\nShow information about the given package(s) including its dependencies, installation and\ndownload size, sources the package is available from, the description of the packages\ncontent and much more. It can e.g. be helpful to look at this information before allowing\napt(8) to remove a package or while searching for new packages to install.\n\n#### list\n\nlist is somewhat similar to dpkg-query --list in that it can display a list of packages\nsatisfying certain criteria. It supports glob(7) patterns for matching package names as\nwell as options to list installed (--installed), upgradeable (--upgradeable) or all\navailable (--all-versions) versions.\n\nedit-sources (work-in-progress)\nedit-sources lets you edit your sources.list(5) files in your preferred text editor while\nalso providing basic sanity checks.\n\n### SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS\n\nThe apt(8) commandline is designed as an end-user tool and it may change behavior between\nversions. While it tries not to break backward compatibility this is not guaranteed either if\na change seems beneficial for interactive use.\n\nAll features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8)\nas well.  apt(8) just changes the default value of some options (see apt.conf(5) and\nspecifically the Binary scope). So you should prefer using these commands (potentially with\nsome additional options enabled) in your scripts as they keep backward compatibility as much\nas possible.\n\n### SEE ALSO\n\napt-get(8), apt-cache(8), sources.list(5), apt.conf(5), apt-config(8), The APT User's guide\nin /usr/share/doc/apt-doc/, aptpreferences(5), the APT Howto.\n\n### DIAGNOSTICS\n\napt returns zero on normal operation, decimal 100 on error.\n\n### BUGS\n\nAPT bug page[1]. If you wish to report a bug in APT, please see\n/usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.\n\n### AUTHOR\n\n#### APT team\n\n### NOTES\n\n1. APT bug page\nhttp://bugs.debian.org/src:apt\n\n\n\nAPT 2.4.14                                  05 April 2020                                     APT(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "apt",
        "section": "8",
        "mode": "man",
        "summary": "apt - command-line interface",
        "synopsis": "apt [-h] [-o=configstring] [-c=configfile] [-t=targetrelease] [-a=architecture] {list |\nsearch | show | update | install pkg [{=pkgversionnumber | /targetrelease}]...  |\nremove pkg...  | upgrade | full-upgrade | edit-sources | {-v | --version} |\n{-h | --help}}",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "apt-get",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/apt-get/8/json"
            },
            {
                "name": "apt-cache",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/apt-cache/8/json"
            },
            {
                "name": "sources.list",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/sources.list/5/json"
            },
            {
                "name": "apt.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/apt.conf/5/json"
            },
            {
                "name": "apt-config",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/apt-config/8/json"
            },
            {
                "name": "aptpreferences",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/aptpreferences/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 71,
                "subsections": [
                    {
                        "name": "list",
                        "lines": 9
                    }
                ]
            },
            {
                "name": "SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 1,
                "subsections": [
                    {
                        "name": "APT team",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}