APT

Advanced package tool, or APT, is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian, and Debian-based Linux distributions1.

ssh jean@jeans-box.alphahorizon.io

sudo apt update
sudo apt install -y unattended-upgrades

sudo tee /etc/apt/apt.conf.d/50unattended-upgrades <<'EOT'
Unattended-Upgrade::Origins-Pattern {
  "origin=*";
}
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
EOT

sudo systemctl enable --now unattended-upgrades

sudo unattended-upgrades --debug
1

From Wikipedia, last checked 2022-02-19 (https://en.wikipedia.org/wiki/APT_(software))