Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Script para instalar os Visual Studio Code e o Google Chrome no Ubuntu
#!/usr/bin/env sh
# Baixa a chave da Microsoft
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
# Baixa a chave do Google
wget -qO- https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Move a chave da Microsoft pro lugar certo e remove arquivo temporário
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/ && rm packages.microsoft.gpg
# Adiciona o repositório da Microsoft à lista
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# Adiciona o repositório do Google à lista
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# Atualiza lista de pacotes e instala o VS Code e o Google Chorme
sudo apt update && sudo apt install code google-chrome-stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.