Last active
August 31, 2019 23:15
-
-
Save wldomiciano/6e299c48b43ed91500f529100434b23e to your computer and use it in GitHub Desktop.
Script para instalar os Visual Studio Code e o Google Chrome no Ubuntu
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
#!/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