Debian / Ubuntu 只安裝安全更新的方法

只安裝安全更新
sudo unattended-upgrade

自動安裝安全更新
sudo dpkg-reconfigure -plow unattended-upgrades

讓 apt-get upgrade 只安裝安全更新
sudo vi /etc/apt/preferences

Package: *
Pin: release a=lucid-security
Pin-Priority: 500

Package: *
Pin: release o=Ubuntu
Pin-Priority: 50


sudo apt-get update
sudo apt-get upgrade

參考資料: package management - How can I install just security updates from the command line? - Ask Ubuntu

你可能感兴趣的:(linux,Security)