Skip to content

Instantly share code, notes, and snippets.

@sunr00t
Last active February 13, 2022 14:54
Show Gist options
  • Save sunr00t/4d0f77d973856a60aab316d2e55696d8 to your computer and use it in GitHub Desktop.
Save sunr00t/4d0f77d973856a60aab316d2e55696d8 to your computer and use it in GitHub Desktop.
Ubuntu / Debian - Adicionando VSCode na SourceList do Apt
#Baixar e Extrair Chave .gpg da Microsoft
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
#Instalar a chave como Chaves Confiaveis
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
#Usar chave e adicionar repositorio apt na source.list
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'
#Instalar Pacote auxiliar
sudo apt install apt-transport-https
#Atualizar source list e instalar
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