apt-mark

Utility to change the status of installed packages. More information: <https://manpages.debian.org/latest/apt/apt-mark.8.html>.

Install

All systems
curl cmd.cat/apt-mark.sh
Debian Debian
apt-get install apt
Ubuntu
apt-get install apt
image/svg+xml Kali Linux
apt-get install apt
Fedora
dnf install apt
Windows (WSL2)
sudo apt-get update sudo apt-get install apt
Raspbian
apt-get install apt

Utility to change the status of installed packages. More information: <https://manpages.debian.org/latest/apt/apt-mark.8.html>.

  • Mark a package as automatically installed:
    sudo apt-mark auto package
  • Hold a package at its current version and prevent updates to it:
    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 that aren't being updated:
    apt-mark showhold

© tl;dr; authors and contributors