Skip to content

Instantly share code, notes, and snippets.

@dongerardor
Created March 7, 2024 22:44
Show Gist options
  • Select an option

  • Save dongerardor/0ba0a5d4f22ac4bf598ed33711de09bd to your computer and use it in GitHub Desktop.

Select an option

Save dongerardor/0ba0a5d4f22ac4bf598ed33711de09bd to your computer and use it in GitHub Desktop.
bash script to update VS Code in Debian
#!/bin/bash
# Update vscode in Linux (Debian, Ubuntu)
# creating a bash file: 'auto-update-vscode.sh' with this content.
#
# Before the script can be run, the file must have executable permissions.
### chmod +x auto-update0-vscode.sh
#
# and then run the file:
### ./auto-update-vscode.sh # being in file dir
wget 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -O /tmp/code_latest_amd64.deb
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