Created
September 10, 2016 07:52
-
-
Save kitsuyui/db5b244fa095d505a52da8fd545422fa to your computer and use it in GitHub Desktop.
unattended-upgrades を TUI を使わずに有効化するには (構成管理ツールなど非インタラクティブな状況とか) ref: http://qiita.com/kitsuyui/items/84ee1a2f91c12ba850c9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install -y unattended-upgrades | |
$ sudo dpkg-reconfigure -plow unattended-upgrades |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo 'unattended-upgrades unattended-upgrades/enable_auto_updates boolean true' \ | |
| sudo debconf-set-selections | |
$ sudo dpkg-reconfigure -f noninteractive -plow unattended-upgrades |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install -y debconf-utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{パッケージ名} {パッケージ内の設定項目名} {型} {値} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo debconf-get-selections | grep unattended-upgrades | |
unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment