Advertisement
khampf

apt-run

Aug 12th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2. apt-get update
  3. apt-get dist-upgrade \
  4. && apt-get clean \
  5. && apt-get autoremove || exit 1
  6.  
  7. until [ "$(deborphan)" == "" ]; do
  8.         apt-get remove --purge $(deborphan) || exit 1
  9. done
  10. echo "$0: Run completed without errors ..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement