centos 7.9 offline download and install vscode, and plug-in installation and download

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"

insert image description here

③. 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
![[Pasted image 20230626113805.png]]

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

![[Pasted image 20230626111522.png]]

The version date shown in the figure below is May 2023

![[Pasted image 20230626111856.png]]

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:
![[Pasted image 20230626112309.png]]

View version History, find and download the latest version of vscode and download it
![[Pasted image 20230626112407.png]]

3. Install vscode plugin

![[Pasted image 20230626112957.png]]

Insert the downloaded plug-in and restart to complete the installation
![[Pasted image 20230626113108.png]]

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

Guess you like

Origin blog.csdn.net/weixin_40178954/article/details/131394454