Last active
October 23, 2023 06:29
-
-
Save ytxmobile98/8042dadc212786fe375f3ee62777f095 to your computer and use it in GitHub Desktop.
VSCode install
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
| #!/usr/bin/env bash | |
| # Reference: https://code.visualstudio.com/docs/setup/linux | |
| sudo apt-get install wget gpg | |
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
| sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
| sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
| rm -f packages.microsoft.gpg | |
| sudo apt install apt-transport-https | |
| sudo apt update | |
| sudo apt install code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment