1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/linux/apt-mark.md

24 lines
449 B
Markdown
Raw Normal View History

# apt-mark
> 修改已安装软件包状态的工具
2019-10-19 14:12:27 +08:00
- 将一个软件包标记为自动安装:
`sudo apt-mark auto {{软件包名}}`
2019-10-19 14:12:27 +08:00
- 将一个软件包保持在当前版本,防止对其更新:
`sudo apt-mark hold {{软件包名}}`
2019-10-19 14:12:27 +08:00
- 允许对一个软件包更新:
`sudo apt-mark unhold {{软件包名}}`
2019-10-19 14:12:27 +08:00
- 列出手动安装的软件包:
`apt-mark showmanual`
2019-10-19 14:12:27 +08:00
- 列出保持当前版本而不更新的软件包:
`apt-mark showhold`