apt-mark 是用于将包标记为手动 (或自动) 安装的简单命令行接口。
apt-mark 还可操纵 dpkg 包选定状态, 和列出带有 (或不带有) 某种标记的所有包。
另请参阅: apt apt-cache apt-get aptitude apt-key dpkg
基本语法 Basic Usage Detailed Usage
apt-mark [options] {auto|manual} pkg1 [pkg2 ...]
配置 options 和语法
root:~# find / -name apt.conf /usr/share/doc/apt/examples/apt.conf root:~#
配置源
root:~# find / -name sources.list /etc/apt/sources.backup.d/sources.list /etc/apt/sources.list /usr/share/doc/apt/examples/sources.list root:~#
options 选项
| 参数 | EN 解释 | 中文翻译 | Remark |
|---|---|---|---|
| auto | Mark the given packages as automatically installed | 把给定包标记为自动安装 | |
| manual | Mark the given packages as manually installed | 把给定包标记为手动安装 | |
| hold | Mark a package as held back | 将包标记为抑制 | |
| unhold | Unset a package set as held back | 撤消设置包为抑制 | |
| showauto | Print the list of automatically installed packages | 打印自动安装包列表 | |
| showmanual | Print the list of manually installed packages | 打印手动安装包列表 | |
| showhold | Print the list of package on hold | 打印保持包列表 |
| Function | 命令 | 文字解释 | 示例 | 示例解释 |
|---|---|---|---|---|
| 抑制 | apt-mark hold packagename | 抑制不升级指定 packagename | ||
| apt-mark unhold packagename | 撤消抑制不升级指定 packagename | |||
| 帮助 | apt-mark --help | 展示帮助信息 | ||
| Version | apt-mark --version | 展示版本信息 |
apt-mark hold chromium-browser firefox thunderbird
apt-mark unhold chromium-browser firefox thunderbird
Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.