HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

apt-mark — Utility to change the status of installed packages. More information: <https://manned.org/apt-mark>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandstatusclichangeapt-markutilityinstalled
linux

Problem

How to use the apt-mark command: Utility to change the status of installed packages. More information: <https://manned.org/apt-mark>.

Solution

apt-mark — Utility to change the status of installed packages. More information: <https://manned.org/apt-mark>.

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

Code Snippets

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

Context

tldr-pages: linux/apt-mark

Revisions (0)

No revisions yet.