Search notes:

apt

apt [options] command
apt provides the same functionality as apt-get and apt-cache but has different default values for some options (see man 5 apt.conf) which makes apt more suitable to be used as an end-user tool for interactive use (while the two other commands are intended for usage in scripts).
In fact, apt prints the following message to stderr:
$ apt install xyz 1>/dev/null

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Most used commands

update Update list of available packages from all configured sources. This list is used by other commands. Compare with apt-get update.
list list packages based on package names (similar to dpkg-query --list)
search Use a regular expression to search in the list of available packages in display names and package descriptions. Compare with apt-file which searches for file names matching a given expression.
show Show package details (version, tags, download size, APT source, description, section, dependencies, priority etc). Compare with apt-get showpkg.
install Install packages
reinstall Reinstall packages
remove remove packages
autoremove Remove automatically all unused packages, unless they are marked with apt-mark.
upgrade Upgrade all currently installed packages on the system from the sources configured in /etc/apt/sources.list and /etc/apt/sources.list.d/. Compare with full-upgrade.
full-upgrade Upgrade the system by removing/installing/upgrading packages.
edit-sources Edit /etc/apt/sources.list with some sanity checks when done editing.
satisfy Satisfy dependency strings
full-upgrade Like upgrade, but remove currently installed pacakges if so needed.
build-dep

Options

-h
-o=config_string
-c=config_file
-t=target_release
-a=architecture

Misc

Selecting a specific package version / release

A specific version of a package is indicated after an equal sign following the package name.
A specific release can be chosen by specifying its codename (bullseye, bookworm etc) or suite name (stable, testing, unstable) after a forward slash.

Python wrapper named apt in Linux Mint

Apparently, Linux Mint has a Python script which is also named apt(!) and calls apt-get under the hood.

See also

APT
/usr/share/doc/apt-doc

Index