apt-mark
(8)show, set and unset various settings for a package
Options
7-f--filefilenameRead/Write package stats from the filename given with the parameter filename instead of from the default location, which is extended_states in the directory defined by the Configuration Item: Dir::State.
-h--helpShow a short usage summary.
-v--versionShow the program version.
--auditShow audit (and notice) messages. This overrides the quiet option, but only for notice messages, not progress ones.
-c--config-fileConfiguration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the APT_CONFIG environment variable. See apt.conf(5) for syntax information.
-o--optionSet a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be used multiple times to set different options.
--no-color--colorTurn colors on or off. Colors are on by default on supported terminals for apt(8) and can also be disabled using the NO_COLOR or APT_NO_COLOR environment variables, or further configured by the APT::Color configuration option and scope, see apt.conf(5) for information on that.
DESCRIPTION
AUTOMATICALLY AND MANUALLY INSTALLED PACKAGES
When you request that a package is installed, and as a result other packages are installed to satisfy its dependencies, the dependencies are marked as being automatically installed, while the package you installed explicitly is marked as manually installed. Once an automatically installed package is no longer depended on by any manually installed package it is considered no longer needed and e.g. apt-get or aptitude will at least suggest removing them.
auto
manual
minimize-manual
showauto
showmanual
Options
-f=filename, --file=filename
PREVENT CHANGES FOR A PACKAGE
hold
unhold
showhold
SCHEDULE PACKAGES FOR INSTALL, REMOVE AND PURGE
Some front-ends like apt-get dselect-upgrade can be used to apply previously scheduled changes to the install state of packages. Such changes can be scheduled with the install, remove (also known as deinstall) and purge commands. Packages with a specific selection can be displayed with showinstall, showremove and showpurge respectively. More information about these so called dpkg selections can be found in dpkg(1).