Created
October 14, 2023 01:13
-
-
Save YasunoriMATSUOKA/dc47a7a6368bb1d17c256bf39a4aac7b to your computer and use it in GitHub Desktop.
apt, apt-getなどでインタラクティブな確認でプロセスが止まらないようにする方法のメモ
This file contains 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
#!/bin/bash | |
# ref: https://www.si1230.com/?p=45935 | |
# apt-get | |
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold update | |
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold upgrade --with-new-pkgs | |
# apt | |
sudo DEBIAN_FRONTEND=noninteractive apt -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold update | |
sudo DEBIAN_FRONTEND=noninteractive apt -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold upgrade --with-new-pkgs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment