apt-mark
TLDR
Mark a package as automatically installed
$ sudo apt-mark auto [package]
Mark a package as manually installed$ sudo apt-mark manual [package]
Hold a package at its current version$ sudo apt-mark hold [package]
Allow a package to be updated again$ sudo apt-mark unhold [package]
Show manually installed packages$ apt-mark showmanual
Show held packages$ apt-mark showhold
SYNOPSIS
apt-mark [options] command package...
DESCRIPTION
apt-mark is a utility to change the status of installed packages. It can mark packages as automatically installed (making them candidates for autoremove), manually installed, or held at their current version.
PARAMETERS
auto package
Mark package as automatically installedmanual package
Mark package as manually installedhold package
Hold package at current version, preventing upgradesunhold package
Remove hold, allowing package to be upgradedshowmanual
Show list of manually installed packagesshowauto
Show list of automatically installed packagesshowhold
Show list of held packagesminimize-manual
Mark all packages as auto except those with no auto-installed reverse depends-f, --file
Read/write package stats from the filename specified-v, --verbose
Verbose output
CAVEATS
Holding packages may cause dependency issues during system upgrades. Use sparingly.
HISTORY
Part of the APT (Advanced Package Tool) suite developed for Debian-based systems.


