Skip to content

Instantly share code, notes, and snippets.

@YasunoriMATSUOKA
Created October 14, 2023 01:13
Show Gist options
  • Save YasunoriMATSUOKA/dc47a7a6368bb1d17c256bf39a4aac7b to your computer and use it in GitHub Desktop.
Save YasunoriMATSUOKA/dc47a7a6368bb1d17c256bf39a4aac7b to your computer and use it in GitHub Desktop.
apt, apt-getなどでインタラクティブな確認でプロセスが止まらないようにする方法のメモ
#!/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