Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Created July 19, 2018 20:35
Show Gist options
  • Save josephabrahams/a3037b09f640523aba1c71f73b04ef62 to your computer and use it in GitHub Desktop.
Save josephabrahams/a3037b09f640523aba1c71f73b04ef62 to your computer and use it in GitHub Desktop.

Revisions

  1. josephabrahams created this gist Jul 19, 2018.
    10 changes: 10 additions & 0 deletions aptupgrade.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash

    sudo apt-get update && \
    sudo apt-get -y upgrade --with-new-pkgs && \
    sudo apt-get -y autoremove && \
    sudo apt-get -y autoclean

    if [ -f /var/run/reboot-required ]; then
    echo "Reboot required."
    fi