Skip to content

Instantly share code, notes, and snippets.

@JamesConlan96
Last active May 11, 2023 08:57
Show Gist options
  • Save JamesConlan96/774842b0f3b26587c7aeaee4b52184ed to your computer and use it in GitHub Desktop.
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
#!/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