I never thought I’d ever say this, but I must admit that I have become quite a fan of Microsoft’s Visual Studio Code IDE, which is available for a wide range of platforms, including Linux.
However, the installation user experience was still somewhat arcane – one had to manually download the RPM package from their web site to install the software. Once a new version was available, the user receives a notification within the application, which redirects him to the website for downloading and updating the latest RPM manually again.
Therefore it didn’t take long for the community to request the creation of a dedicated yum repository, to keep the package updated automatically.
This issue has now been resolved: a yum repo has now been created. Until github issue 20895 has been fixed, this still requires setting up the required repository configuration manually though, but hopefully this will be addressed soon as well.
Until then, here’s how to enable the yum repo on Fedora Linux (Fedora 25 in my case):
Create a file
/etc/yum.repos.d/vscode.repo with the following content:
name=Visual Studio Code
Now you can install the package with the following command:
$ sudo dnf install code
Upon the first run, you will be requested to import the GPG build key used for signing the package.
Once a new updates becomes available, running
dnf update will pull and install the updated package automatically.
Thanks to the developers at Microsoft for making this step much easier now!