Skip to content

Instantly share code, notes, and snippets.

@weakish
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weakish/a20a69819fa3c5299b5b to your computer and use it in GitHub Desktop.
Save weakish/a20a69819fa3c5299b5b to your computer and use it in GitHub Desktop.
Fetch and apply all #security updates for #Debian in #sh
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> (http://weakish.github.io)
# under Apache-2.0
# Fetch and apply all security updates for #Debian.
sudo apt-get install $(debsecan --suite $(lsb_release -a | grep -o -P '(?<=Codename:[\s]).*') --format packages)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment