mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 15:41:38 +00:00
30 lines
599 B
Plaintext
30 lines
599 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# apt-mark
|
|
|
|
> Utility to change the status of installed packages.
|
|
> More information: <https://manned.org/apt-mark.8>.
|
|
|
|
- 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`
|