Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kaisugi/dd4689dd7524704094159c10e393abac to your computer and use it in GitHub Desktop.
Save kaisugi/dd4689dd7524704094159c10e393abac to your computer and use it in GitHub Desktop.
Install-or-update-vscode(Visual Studio Code)-on-debian
#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