Ubuntu server版本登入的時候預設會提醒有哪些安全性套件要更新。也可以用下面的指令來看:
- apt-get -s dist-upgrade | grep "^Inst" | grep -i security
確定要安裝這些安全性套件security update,則是用下面指令:
- apt-get -s dist-upgrade | grep "^Inst" | grep -i security | awk -F " " {'print $2'} | sudo xargs apt-get --yes install