Article directory
1. Software download
1. The method adopted
Download relevant files and dependencies from a networked centos, then import them into a Centos server without a network, and finally install
2. Download the corresponding compressed package
①, dependent package download
Download libXScrnSaver (required for vscode to run)
yum install --downloadonly --downloaddir=/usr/local libXScrnSaver
②, VScode installation package rmp download
Ⅰ. Visit the official website of Visual Studio Code https://code.visualstudio.com/docs?dv=linux64
Ⅱ, or: wget + "download link"
③. Copy out the corresponding installation package through FileZilla, and upload it to the corresponding intranet server through the CD. (The use and installation of FileZilla is done by Baidu)
vscode and libXScrnSaver on June 26, 2023 (the version at this time may change over time, please install and download by yourself after time passes) Baidu Cloud:
Link: https://pan.baidu.com/s/1pWZP-X0yDKki8JKu8FZSGA
Extraction code: bh80
3. Installation process
①Install the relevant dependencies first (switch to the folder where the dependencies are located):
rpm -Uvh --force --nodeps libXScrnSaver-1.2.2-6.1.el7.x86_64.rpm
②Install vscode
rpm -ivh code-1.79.2-1686734266.el7.x86_64.rpm #对应你自己的rpm安装包
③ restart
reboot
After restarting, you can find the corresponding vscode soft armor in the application, and you can pull it to the desktop
4. Relevant knowledge
- yum downloads the rpm package to the specified directory, only downloads but does not install
yum install --downloadonly --downloaddir=path installation package name
Example: yum install --downloadonly --downloaddir=/usr/local libXScrnSaver
- Install: rpm -Uvh --force --nodeps .rpm
Example: rpm -Uvh --force --nodeps libXScrnSaver-1.2.2-6.1.el7.x86_64.rpm
2. Plug-in installation and download
1. View the version number of vscode
The version date shown in the figure below is May 2023
2. Find the version number of the plugin
Ensure the compatibility of VScode, so the update date of the installed plug-in must find the date closest to the VScode version, too low or too high will cause the plug-in to be unavailable.
Vscode plug-in market: https://marketplace.visualstudio.com/VSCode
Take markdown all in one as an example, click to enter:
View version History, find and download the latest version of vscode and download it
3. Install vscode plugin
Insert the downloaded plug-in and restart to complete the installation
3. vscode and dependent installation packages, commonly used plug-ins Baidu Cloud:
vscode and dependent installation packages, commonly used verilog development plug-ins Baidu Cloud:
Link: https://pan.baidu.com/s/1pWZP-X0yDKki8JKu8FZSGA
Extraction code: bh80