apt-getアップグレードのためにcronジョブを設定するのは安全ですか? [閉鎖]

apt-getアップグレードのためにcronジョブを設定するのは安全ですか? [閉鎖]

私の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.

説明が示すように、このパッケージはセキュリティアップグレードで使用するように設計されています。セキュリティ更新プログラムを自動的にインストールするのはかなり安全なオプションです。他の種類の無人アップグレードを実行する方が危険です。

おすすめ記事