Skip to content

Instantly share code, notes, and snippets.

@migueltg
Created October 10, 2019 07:14
Show Gist options
  • Save migueltg/2f6d73eee55b572df58de619e5ff3129 to your computer and use it in GitHub Desktop.
Save migueltg/2f6d73eee55b572df58de619e5ff3129 to your computer and use it in GitHub Desktop.
Update and cleand Debian / Ubuntu system
apt-get update -y && echo "" && \
apt-get install deborphan -y && \
apt-get dist-upgrade -y && echo "" && \
apt-get upgrade -y && echo "" && \
deborphan | xargs sudo apt-get remove -y --purge && echo "" && \
apt-get autoremove -y && echo "" && \
apt-get autoclean -y && echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment