| APT-MARK(8) | APT | APT-MARK(8) |
NAME¶
apt-mark - show, set and unset various settings for a package
SYNOPSIS¶
apt-mark {-f=filename | {auto | manual} pkg... | {showauto | showmanual} [pkg...] } | {-v | --version} | {-h | --help}
apt-mark {hold | unhold | install | remove | purge} pkg... | {showhold | showinstall | showremove | showpurge} [pkg...]
DESCRIPTION¶
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.
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).
OPTIONS¶
-h, --help
-v, --version
--audit
-c, --config-file
-o, --option
--cli-version
Version tracks are presented as follows: The version 3.2 has equivalent versions 0.32, 1.22, and 2.12, implementing new features for their specified major versions.
A special case is the X.9 version pattern: A version like 2.9 is followed by 3.0, but 2.10 follows directly on 2.8; given that we use odd version numbers as development series (2.9 is the 3.0 development series).
This feature has been introduced in APT 3.1.10, and replaces the binary-specific configuration. You may use the APT::Version to similar effect on older binaries, for example, use -o APT::Version=2 to make apt(8) behave like the 2.x series.
The default value is the current APT version for apt(8) and 0.(10 * major + minor) for the classic commands. The 0.X series is soft-deprecated and the other commands will roll over to the 2.x series in the future.
--no-color, --color
FILES¶
/var/lib/apt/extended_states
SEE ALSO¶
DIAGNOSTICS¶
apt-mark returns zero on normal operation, non-zero on error.
BUGS¶
APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.
AUTHORS¶
Mike O'Connor
APT team
NOTES¶
- 1.
- APT bug page
| 14 September 2024 | APT 3.1.11 |