Last active
July 7, 2024 09:25
-
-
Save kkbruce/6c2f5ad4c520c3345ddcae6bf0e71f33 to your computer and use it in GitHub Desktop.
Run WSL - Ubuntu "atp update && atp upgrade" command from Windows command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM wsl.exe -d Ubuntu-18.04 | |
| wsl sudo apt update && sudo apt upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For any who find this and may want to run those apt update/upgrade commands via wsl from the Windows commandline, this works:
wsl sh -c "sudo apt update && sudo apt upgrade -y"Trying it without the
sh -cand/or without the quotes will get different errors.