Created
July 6, 2021 09:01
-
-
Save ciamac-da/078e5e1fddbd9b963326e716898e287a to your computer and use it in GitHub Desktop.
Install-or-update-vscode(Visual Studio Code)-on-debian
This file contains 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
#installing vscode on Debian | |
You can install vscode using following commands: | |
1- Start by updating the packages index and installing the dependencies by typing: | |
sudo apt update | |
2- sudo apt install software-properties-common apt-transport-https curl | |
3- Import the Microsoft GPG key using the following curl command: | |
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
4- Add the Visual Studio Code repository to your system: | |
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | |
5- Install the Visual Studio Code package with: | |
sudo apt update | |
sudo apt install code | |
#updating vscode on Debian | |
You can update vscode using following commands: | |
1- wget 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -O /tmp/code_latest_amd64.deb | |
2 - sudo dpkg -i /tmp/code_latest_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use debconf-set-selections to provide your desired answer to that question before installing the deb. Run one of the following, where the first "true" command is equivalent to answering "yes", and the second "false" is equivalent to no.
See also microsoft/vscode#22145