sh_linux_installation_scripts/common/redhat/apps/vscode.sh

16 lines
412 B
Bash
Raw Permalink Normal View History

2021-11-24 09:41:28 +01:00
#!/bin/bash
install_vscode() {
echo "Installing VS Code"
2021-11-24 09:55:57 +01:00
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
cat <<EOF | sudo tee /etc/yum.repos.d/vscode.repo
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF
sudo dnf check-update
2021-11-24 09:41:28 +01:00
sudo dnf install code -y
}