Linux "apt-mark" Command Line Options and Examples
show, set and unset various settings for a package

apt-mark can be used as a unified front-end to set various settings for a package, such as marking a package as being automatically/manually installed or changing dpkg selections such as hold, install, deinstall and purge which are respected e.g. by apt-get dselect-upgrade or aptitude.


Usage:

apt-mark {-f=filename | {auto | manual} pkg... | {showauto | showmanual} [pkg...] } | {-v | --version} | {-h | --help}




Command Line Options:

-h
Show a short usage summary.
apt-mark -h ...
-v
Show the program version.
apt-mark -v ...
-c
Configuration File; Specify a configuration file to use. The program will read the default configuration file and then thisconfiguration file. If configuration settings need to be set before the default configuration files are parsed specify a filewith the APT_CONFIG environment variable. See apt.conf(5) for syntax information.
apt-mark -c ...
-o
Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option canbe used multiple times to set different options.FILES/var/lib/apt/extended_statesStatus list of auto-installed packages. Configuration Item: Dir::State::extended_states.
apt-mark -o ...