Last active
May 11, 2023 08:57
-
-
Save JamesConlan96/774842b0f3b26587c7aeaee4b52184ed to your computer and use it in GitHub Desktop.
A script to update a Kali Linux installation without prompting for user input
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
#!/usr/bin/env bash | |
sudo /usr/bin/env bash -p <<ENDROOT | |
export DEBIAN_FRONTEND=noninteractive | |
ex +"%s@DPkg@//DPkg" -cwq /etc/apt/apt.conf.d/70debconf | |
echo 'libc6:amd64 libraries/restart-without-asking boolean true' | debconf-set-selections | |
dpkg-reconfigure debconf -f noninteractive -p critical | |
apt-get update | |
apt-get --assume-yes dist-upgrade | |
ENDROOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment