为 apt-get upgrade 设置 cron 作业是否安全?

The*_*ist 4 security cron apt stability

apt-get update; apt-get upgrade为我的网络服务器创建一个 cron 作业是个好主意吗?

所以不是 apt-get dist-upgrade

Fah*_*tha 7

是的,在有限的范围内。但你没有必要。有一个名为的包 unattended-upgrades可以为您完成。

Description-en: automatic installation of security upgrades
 This package can download and install security upgrades automatically
 and unattended, taking care to only install packages from the
 configured APT source, and checking for dpkg prompts about
 configuration file changes.
 .
 This script is the backend for the APT::Periodic::Unattended-Upgrade
 option.
Run Code Online (Sandbox Code Playgroud)

正如描述所暗示的那样,此软件包旨在用于安全升级。自动安装安全升级是一个相当安全的选择。进行其他类型的无人值守升级风险更大。