os: vscode -- fedora38
一、vscode 安装:官方安装方法
1、vscode 官方安装网址:https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions
2、官方推荐安装方法:
3、官方安装代码部分:
1 1. vscode repo config 2 3 1.1 sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc 4 5 1.2 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' 6 7 8 9 10 11 2. vscode install 12 13 2.1 dnf check-update 14 15 2.2 sudo dnf install code # or code-insiders
二、文件:vscode.repo
1 [wit@fedora yum.repos.d]$ cat vscode.repo 2 3 [code] 4 name=Visual Studio Code 5 baseurl=https://packages.microsoft.com/yumrepos/vscode 6 enabled=1 7 gpgcheck=1 8 gpgkey=https://packages.microsoft.com/keys/microsoft.asc 9 10 11 [wit@fedora yum.repos.d]$
三、参考资料:
1、vscode 官方文档:https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions
2、https://www.cnblogs.com/ygst/p/16660098.html
3、https://www.yundongfang.com/Yun214160.html
标签:code,vscode,com,--,https,packages,os,microsoft From: https://www.cnblogs.com/lnlidawei/p/17900602.html