Skip to content

Instantly share code, notes, and snippets.

@takumaw
Last active June 28, 2022 04:40
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 takumaw/eaa751aa41a3ba5dbd941b45b659df6e to your computer and use it in GitHub Desktop.
Save takumaw/eaa751aa41a3ba5dbd941b45b659df6e to your computer and use it in GitHub Desktop.
Apt auto upgrades on WSL2
wsl.exe --distribution Ubuntu --user root --cd ~ -- /bin/zsh -c "sudo apt update; sudo apt upgrade -y; sudo apt autoremove -y; sudo apt autoclean"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment