增 | 安装软件
无人值守升级
1)Debian/Wiki/UnattendedUpgrades
2)How to Install Security Updates Automatically on Debian and Ubuntu
删 | 删除软件
WIP
改 | 修改软件
软件升级
List Upgradable Packages With apt Command in Ubuntu
apt list --upgradable # 查看升级 apt-get install xxxxxxx # 升级某个 apt-get upgrade # 升级全部
Alien(RPM 转 DEB)
锁定版本,防止升级
How to prevent updating of a specific package?
apt-mark hold <package-name> # 锁定 apt-mark unhold <package-name> # 解锁 apt-mark showhold # 查看所有锁定的包
查 | 查看软件
查看已经安装软件包
apt – Is it possible to get a list of most recently installed packages? – Ask Ubuntu
apt – How to list all installed packages – Ask Ubuntu
command line – How can I find the version number of an installed package via dpkg? – Ask Ubuntu
grep " install " /var/log/dpkg.log dpkg -l # 能够获得版本 apt list --installed # 能够获得版本 dpkg --get-selections | grep -v deinstall dpkg -s <packagename> | grep '^Version:' # 查看版本
查看可升级的软件包
List available updates but do not install them
apt list --upgradable apt-get -u upgrade --assume-no apt-get upgrade --show-upgraded --assume-no
查看软件包包含文件
dpkg – How to list files of a Debian package without install – Super User
# 通过 APT File 命令 apt-get intsall apt-file apt-file update apt-file list package_name # 通过 DPKG 命令 dpkg -c package_file.deb
查看最近升级的软件
apt – Is it possible to get a list of most recently installed packages? – Ask Ubuntu
grep ” install ” /var/log/dpkg.log
grep ” install ” /var/log/apt/history.log