Home Explore Blog CI



man-pages

1st chunk of `apt.man`
09fc422c9d067400208b662454fdac5e2817f0512c8576960000000100000e1f
APT(8)                                APT                                APT(8)

NAME
       apt - command-line interface

SYNOPSIS

       apt [-h] [-o=config_string] [-c=config_file] [-t=target_release]
           [-a=architecture] {list | search | show | update |
           install pkg [{=pkg_version_number | /target_release}]...  |
           remove pkg...  | upgrade | full-upgrade | edit-sources |
           {-v | --version} | {-h | --help}}

DESCRIPTION
       apt provides a high-level commandline interface for the package
       management system. It is intended as an end user interface and enables
       some options better suited for interactive usage by default compared to
       more specialized APT tools like apt‐get(8) and apt‐cache(8).

       Much like apt itself, its manpage is intended as an end user interface
       and as such only mentions the most used commands and options partly to
       not duplicate information in multiple places and partly to avoid
       overwhelming readers with a cornucopia of options and details.

       update (apt‐get(8))
           update is used to download package information from all configured
           sources. Other commands operate on this data to e.g. perform package
           upgrades or search in and display details about all packages
           available for installation.

       upgrade (apt‐get(8))
           upgrade is used to install available upgrades of all packages
           currently installed on the system from the sources configured via
           sources.list(5). New packages will be installed if required to
           satisfy dependencies, but existing packages will never be removed.
           If an upgrade for a package requires the removal of an installed
           package the upgrade for this package isn't performed.

       full-upgrade (apt‐get(8))
           full-upgrade performs the function of upgrade but will remove
           currently installed packages if this is needed to upgrade the system
           as a whole.

       install, reinstall, remove, purge (apt‐get(8))
           Performs the requested action on one or more packages specified via
           regex(7), glob(7) or exact match. The requested action can be
           overridden for specific packages by appending a plus (+) to the
           package name to install this package or a minus (-) to remove it.

           A specific version of a package can be selected for installation by
           following the package name with an equals (=) and the version of the
           package to select. Alternatively the version from a specific release
           can be selected by following the package name with a forward slash
           (/) and codename (bookworm, trixie, sid ...) or suite name (stable,
           testing, unstable). This will also select versions from this release
           for dependencies of this package if needed to satisfy the request.

           Removing a package removes all packaged data, but leaves usually
           small (modified) user configuration files behind, in case the remove
           was an accident. Just issuing an installation request for the
           accidentally removed package will restore its function as before in
           that case. On the other hand you can get rid of these leftovers by
           calling purge even on already removed packages. Note that this does
           not affect any data or configuration stored in your home directory.

       autoremove (apt‐get(8))
           autoremove is used to remove packages that were automatically

Title: APT Command-Line Interface: Usage and Package Management
Summary
This section describes the `apt` command-line interface, a high-level tool for package management. It details the syntax, available commands like `update`, `upgrade`, `full-upgrade`, `install`, `remove`, `purge`, and `autoremove`, and options for specifying package versions and target releases. The tool is designed for end-users and provides a simplified interface compared to `apt-get` and `apt-cache`.