commands

apt-mark — inspect package selection

showhold lists held packages; hold and unhold change selection state. Holds are not version priority pins or backups and may delay security updates. Use the specified distribution and fresh private workspace; no sudo.

Formal Syntax & Structure

linux syntaxlinux
apt-mark showhold [PACKAGE...]

Parameters & Attributes

NameTypeDescription
PACKAGEoperandoptional package filter

Return Value

exit status and output

showhold lists held packages; hold and unhold change selection state. Holds are not version priority pins or backups and may delay security updates.

Working Example

Example Snippetlinux
apt-mark showhold > holds.txt && printf 'hold query complete\n'
Linux Reference