Hands-On Serverless Computing
上QQ阅读APP看书,第一时间看更新

openSUSE and SLE-based distributions

The yum repository mentioned above for RHEL, CentOS, and Fedora distributions also works for openSUSE and SLE-based systems. The following script will install the signing key and repository:

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/vscode.repo'

Then run the following commands to update the package cache and install the package:

sudo zypper refresh
sudo zypper install code