For Debian based systems package unattended-upgrades provides functionality to install security updates only on your Debian systems. You can also configure your system to install security updates automatically.
Install Required Package
Default unattended-upgrades package should be installed on your system. But in case it’s not installed use following command to install.
$ sudo apt-get install unattended-upgrades
Install Security Updates
You can simply execute the following command to install security updates on your system. The below command will run silently on your system and apply security updates.
$ sudo unattended-upgrades
Or you can use optin -d with command to show verbose logs of update process.
$ sudo unattended-upgrades -d