apt install [<options>] [<package specifiers>]
apt remove [<options>] [<package specifiers>]
- --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.
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