In this tutorial, we will show you how to install Visual Studio Code On CentOS 8.
- A fresh CentOS 8 Desktop.
- A root password is configured on your server.
If you want to create a new VPS server, Login to your Atlantic.Net Cloud Server. Create a new server, choosing CentOS 8 as the operating system, with at least 2 GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.
Once you are logged into your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.
dnf update -y
By default, Visual Studio Code is not available in the CentOS 8 default repository. So you will need to add its repository to your system.
First, import the key with the following command:
rpm --import https://packages.microsoft.com/keys/microsoft.asc
Next, create a Visual Studio Code repo with the following command:
Add the following lines:
[code] name=Visual Studio Code baseurl=https://packages.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=https://packages.microsoft.com/keys/microsoft.asc
Save and close the file when you are finished.
You can now install the Visual Studio Code package by running the following command:
dnf install code -y
Once the installation is completed, you can verify the installed package using the following command:
rpm -qi code
At this point, Visual Studio Code is installed in your system. Now, open your Application manager and search for Visual Studio Code. You should see the Visual Studio Code launcher in the following page:
Click on Visual Studio Code icon to launch the Visual Studio Code. You should see the following page:
You can now proceed and start writing your code and installing your preferred extensions.
In the above guide, you learned how to install Visual Studio Code on CentOS 8 desktop system. It is a very useful code editor for a developer that helps to develop any applications.
If you would like to host your application on the cloud server then I would recommend to try Atlantic.net Cloud and get started with one full year of free VPS hosting in the cloud!