私のWebサーバーのcronジョブを作成するのは良い考えですかapt-get update; apt-get upgrade
?
だからいいえ apt-get dist-upgrade
。
ベストアンサー1
はい、限られた範囲内で可能です。しかし、そうする必要はありません。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.
説明が示すように、このパッケージはセキュリティアップグレードで使用するように設計されています。セキュリティ更新プログラムを自動的にインストールするのはかなり安全なオプションです。他の種類の無人アップグレードを実行する方が危険です。