
上QQ阅读APP看书,第一时间看更新
RHEL, Fedora, and CentOS-based distributions
Stable versions of 64-bit Visual Studio Code are shipped through a yum repository for RHEL, CentOS, and Fedora distributions. Once you run the following script, it will install the 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\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
Then run the following commands to update the package cache and install the package using dnf (Fedora 22 and above):
dnf check-update sudo dnf install code
Or, if you are on an older version of Fedora, use yum:
yum check-update sudo yum install code