APT-MARK(8)
๐ APT-MARK(8) ๐
okay bestie, welcome to the APT-MARK(8) manual page โ yes, the whole apt-mark situation โ and it's literally your front-row seat to showing, setting, and unsetting various settings for a package. no cap, it's useful. ๐
โจ 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 is like the unified front-end for setting various settings for a package. it can mark a package as being automatically or manually installed, or change dpkg selections such as hold, install, deinstall and purge โ and those selections are respected by things like apt-get dselect-upgrade or aptitude, iykyk. ๐ซถ
๐ AUTOMATICALLY AND MANUALLY INSTALLED PACKAGES ๐
okay so here's the vibe: when you request that a package is installed, and as a result other packages get installed to satisfy its dependencies, those 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's considered no longer needed and apt-get or aptitude will at least suggest removing them. slay, but also bye. ๐
autoโ marks a package as being automatically installed, which will cause the package to be removed when no more manually installed packages depend on this package.manualโ marks a package as being manually installed, which will prevent the package from being automatically removed if no other packages depend on it.minimize-manualโ marks (transitive) dependencies of metapackages as automatically installed. this can be used after an installation, for example, to minimize the number of manually installed packages; or continuously on systems managed by system configuration metapackages. iconic behavior honestly. โจshowautoโ prints a list of automatically installed packages, with each package on a new line. all automatically installed packages will be listed if no package is given. if packages are given, only those which are automatically installed will be shown.showmanualโ works in the same way asshowauto, except it prints a list of manually installed packages instead. twin behavior. ๐
๐ Options ๐
-f=filename,--file=filenameโ Read/Write package stats from the filename given with the parameter filename instead of from the default location, which isextended_statesin the directory defined by the Configuration Item:Dir::State.
๐ PREVENT CHANGES FOR A PACKAGE ๐
holdโ marks a package as held back, which will prevent the package from being automatically installed, upgraded or removed. it's giving "not today." โunholdโ cancels a previously set hold on a package so all actions are allowed again.showholdโ prints a list of packages on hold in the same way as for the other show commands.
๐ 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โ Show a short usage summary.-v,--versionโ Show the program version.--auditโ Show audit (and notice) messages. This overrides the quiet option, but only for notice messages, not progress ones.-c,--config-fileโ Configuration 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 theAPT_CONFIGenvironment variable. Seeapt.conf(5)for syntax information.-o,--optionโ Set a Configuration Option; this will set an arbitrary configuration option. The syntax is-o Foo::Bar=bar.-oand--optioncan be used multiple times to set different options.--cli-versionโ Requests a specific CLI version. This is a pattern that takes aMAJOR.MINORversion. You may omit theMINORversion, in which case the latest supported minor level will be used.
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โ Turn colors on or off. Colors are on by default on supported terminals forapt(8)and can also be disabled using theNO_COLORorAPT_NO_COLORenvironment variables, or further configured by theAPT::Colorconfiguration option and scope, seeapt.conf(5)for information on that.
๐ FILES ๐
/var/lib/apt/extended_statesโ Status list of auto-installed packages. Configuration Item:Dir::State::extended_states.
๐ SEE ALSO ๐
apt-get(8), aptitude(8), apt.conf(5)
๐ DIAGNOSTICS ๐
apt-mark returns zero on normal operation, non-zero on error. simple as that bestie.
๐ 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 ๐ง
- APT bug page
https://bugs.debian.org/src:apt
๐ brought to you by APT 3.3.5, dated 14 September 2024 โ mwah ๐
๐ฆ where this page comes from
- arch rolling: apt 3.3.5-1 ยท BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND MIT
- nixpkgs unstable: apt 3.3.5
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms