Table of contents
Revisited and updated on November 06th, 2023.
Visual Studio Code
Visual Studio Code is an Extensible and customizable code editor developed by Microsoft.
Besides, it is free, open-source code and It has gained immense popularity among developers and is widely used for a variety of programming languages and development tasks. VS Code is available. It is a terminal emulator for Linux and Unix-like operating systems.
Check your OS
This step is optional. It's just to make sure you have
When you run
hostnamectl without any options, it provides detailed information about the system's hostname, operating system, kernel, and other system-related settings.
lsb_release is a command-line utility commonly found in Linux distributions that adhere to the Linux Standard Base (LSB). The LSB is a standardization initiative that aims to increase compatibility between different Linux distributions by defining a common set of libraries and conventions.
uname -a command is used to display detailed system information about the Linux operating system. It provides information about the system's kernel and other system-related details.
Let's get down to business
By importing a
Microsoft GPG key and creating a new repository configuration for the Visual Studio Code, let's use the
dnf package manager to install Visual Studio Code.
Import a Microsoft GPG
This step is to ensure we import the
GNU Privacy Guard public key into the system.
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
rpm is the Red Hat Package Manager, a tool used for managing software packages on Red Hat-based Linux distributions, such as Red Hat Enterprise Linux, CentOS, and Fedora.
--import is an option for the rpm tool, indicating that you want to import a GPG key.
Create a repository configuration file for VS Code
udo 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'
This command creates a repository configuration file for Visual Studio Code, called
vscode.repo, in the
It makes it available for installation and updates via the
YUM package manager on your Linux system.
The configuration file specifies the repository's name, location, whether it's enabled, and how to perform GPG signature checks on the packages.
Check for updates
dnf check-update command contacts the configured software repositories to check if there are any updates available for the installed packages.
It doesn't perform any actual updates, it merely checks if there are updates available and provides a list of available updates.
Install Visual Sutdio Code
sudo dnf install code
[phunter@192 ~]$ code -v 1.83.1 f1b07bd25dfad64b0167beb15359ae573aecd2cc x64
Executable file's path
[phunter@192 ~]$ which code /usr/bin/code
Open Visual Studio Code
Let's become friends
Thank you for reading this article.
If you have any questions, thoughts, suggestions, or corrections, please share them with us.
We appreciate your feedback and look forward to hearing from you.
Feel free to suggest topics for future blog articles. Until next time!