2018-10-30 08:34:48 +00:00
|
|
|
# apt-mark
|
|
|
|
|
|
|
|
> Utility to change the status of installed packages.
|
2021-04-17 14:26:03 +01:00
|
|
|
> More information: <https://manpages.debian.org/latest/apt/apt-mark.8.html>.
|
2018-10-30 08:34:48 +00:00
|
|
|
|
|
|
|
- Mark a package as automatically installed:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`sudo apt-mark auto {{package}}`
|
2018-10-30 08:34:48 +00:00
|
|
|
|
|
|
|
- Hold a package at its current version and prevent updates to it:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`sudo apt-mark hold {{package}}`
|
2018-10-30 08:34:48 +00:00
|
|
|
|
|
|
|
- Allow a package to be updated again:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`sudo apt-mark unhold {{package}}`
|
2018-10-30 08:34:48 +00:00
|
|
|
|
|
|
|
- Show manually installed packages:
|
|
|
|
|
|
|
|
`apt-mark showmanual`
|
|
|
|
|
|
|
|
- Show held packages that aren't being updated:
|
|
|
|
|
|
|
|
`apt-mark showhold`
|