openEuler系统安装Visual Studio Code
背景
openEuler(openEuler-24.03-LTS)安装了麒麟UKUI桌面但是没有麒麟软件商店想安装Visual Studio Code
安装密钥和存储库
bash
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
更新包缓存并使用dnf安装包
Fedora 22及以上版本
bash
dnf check-update
sudo dnf install code # or code-insiders
旧版本使用yum
bash
yum check-update
sudo yum install code # or code-insiders