Updating Latest Security Patches For Ubuntu | Linux Administration
Show all upgradeable packages
$ apt-get -s dist-upgrade | grep "^Inst"
Show security updates only :
$ apt-get -s dist-upgrade |grep "^Inst" |grep -i securi
$ sudo unattended-upgrade --dry-run -d
$ /usr/lib/update-notifier/apt-check -p
Install required packages:-
$ apt-get install unattended-upgrades
1. The below command will run silently on your system and apply security updates.
$ sudo unattended-upgrades
2. Or you can use optin -d with command to show verbose logs of update process.
$ sudo unattended-upgrades -d