官术网_书友最值得收藏!

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
主站蜘蛛池模板: 九江县| 浦东新区| 蒲城县| 田阳县| 民丰县| 莱阳市| 庆阳市| 方正县| 抚州市| 长宁县| 蓝山县| 光山县| 沙坪坝区| 广灵县| 嵊泗县| 江西省| 新和县| 扬中市| 德清县| 南京市| 牙克石市| 保德县| 伊通| 英吉沙县| 德格县| 商河县| 健康| 安顺市| 巴南区| 来安县| 河北省| 合肥市| 甘谷县| 泰宁县| 宝坻区| 绥江县| 驻马店市| 乐东| 西昌市| 贡山| 沈丘县|