- How to Install Visual Studio Code Editor in Ubuntu & Debian
- How to Install Visual Studio Code Editor in SEL & openSUSE
Step 1 – Enable Yum Repository
Visual Studio code provides an official yum repository for the installation of package on Yum supported system. The same repository can be used for Fedora systems to use with dnf. Let’s create a new file /etc/yum.repos.d/vscode.repo and edit in your favorite text editor.
Add the below content:
[vscode] name=Visual Studio Code baseurl=https://packages.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=https://packages.microsoft.com/keys/microsoft.asc
Step 2 – Install Visual Studio Code
The Yum will manage the gpg key for you, But you can also Import the package signing GPG key on your system using the following command.
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
After importing GPG key, Let’s use commands to install Visual Studio Code on your RHEL based system.
## CentOS and RHEL system sudo yum check-update sudo yum install code ## Fedora systems: sudo dnf install code
Step 3 – Launch Visual Studio Code
The Visual Studio Code has been installed on your system. You can now launch the Visual Studio Code editor on your system using the desktop menu. After that create a new file or open files and directories using the File menu.
Step 4 – Add Required Extensions