The unattended-upgrades package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates.
To configure unattended-upgrades, edit /etc/apt/apt.conf.d/50unattended-upgrades
.
To enable automatic updates, edit /etc/apt/apt.conf.d/20auto-upgrades
.