Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Created October 27, 2021 06:18
Show Gist options
  • Save Gesugao-san/b670562c9b21a8ad39a2b703f284b16e to your computer and use it in GitHub Desktop.
Save Gesugao-san/b670562c9b21a8ad39a2b703f284b16e to your computer and use it in GitHub Desktop.
Shell command for update Linux (Ubuntu) packages and OS itself. For: https://ubuntu.com/wsl
clear && cd / && echo "=====" && for i in $(seq 2); do echo "[$i/2]" && sudo apt update -y && apt list --upgradable -a && sudo apt upgrade -y && do-release-upgrade -d && apt dist-upgrade && sudo dpkg --configure -a && sudo apt autoremove -y && sudo apt autoclean -y && echo "====="; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment