apt-mark 1.2.32 命令詳解


apt-mark 是用於將包標記為手動 (或自動) 安裝的簡單命令行接口。

apt-mark 還可操縱 dpkg 包選定狀態, 和列齣帶有 (或不帶有) 某種標記的所有包。

另請參閱: apt     apt-cache     apt-get     aptitude     apt-key     dpkg

基本語法     基本用法     詳細用法


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 解釋 中文翻譯 備注
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 打印保持包列錶

基本用法

功能 命令 文字解釋 示例 示例解釋
抑製 apt-mark hold packagename 抑製不升級指定 packagename
apt-mark unhold packagename 撤消抑製不升級指定 packagename
幫助 apt-mark --help 展示幫助信息
版本 apt-mark --version 展示版本信息

詳細用法


apt-mark hold chromium-browser firefox thunderbird

apt-mark unhold chromium-browser firefox thunderbird

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。