Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Created April 18, 2024 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julian-klode/6b0dd8b5e93fe623f683ea7bbbd1a9fd to your computer and use it in GitHub Desktop.
Save julian-klode/6b0dd8b5e93fe623f683ea7bbbd1a9fd to your computer and use it in GitHub Desktop.

apt-install(8)

NAME

apt-install, apt-remove - Install or remove packages

SYNOPSIS

apt install [<options>] [<package specifiers>]

apt remove [<options>] [<package specifiers>]

DESCRIPTION

The apt install and apt remove commands install and remove packages.

OPTIONS

--allow-downgrades

Allow packages to be downgraded. Note that downgrades are not officially supported, use at your own risk.

--allow-change-held-packages

Allow changing held packages. A package can be put on hold using apt-mark(8) or dpkg(1) to prevent it from being changed. This will override any such holds.

--allow-remove-essential

Allow removing essential and protected packages. This is a very dangerous option that may break your system as these packages are required for basic system operation. You will also need to specify the essential packages that should be removed explicitly on the command line.

--allow-unauthenticated

Ignore if packages can’t be authenticated and don’t prompt about it. This can be useful while working with local repositories, but is a huge security risk if data authenticity isn’t ensured in another way by the user itself. T1he usage of the Trusted option for sources.list(5) entries should usually be preferred over this global override. Configuration Item: APT::Get::AllowUnauthenticated.

-d, --download-only

Download only; package files are only retrieved, not unpacked or installed. Configuration Item: APT::Get::Download-Only.

-U, --update

Run the apt-update(8) command before executing the download to update the metadata. If not specified, metadata is updated automatically (since version 3.0) if the last check for updates was over 7 days ago, or some sources have missing metadata.

--install-recommends, --no-install-recommends

Install or do not install Recommends. The default is to install Recommends. Configuration Item: APT::Install-Recommends.

--install-suggests, --no-install-suggests

Install or do not install Suggests. By default, Suggests are NOT installed. Configuration Item: APT::Install-Suggests.

PACKAGE SPECIFIERS

EXIT STATUS

SEE ALSO

apt-update(8) for additional options when using the --update option.

apt-upgrade(8) for specifics on upgrading packages

apt-autoremove(8) for specifics on removing manually installed packages

apt.conf(5) for apt.conf options

sources.list(5) for configuring which sources your packages are installed from

apt_preferences(5) for controlling the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment