Page 1 of 1

visual studio code not available in any repo?

PostPosted: Nov 16th, '20, 14:37
by setlec
Hello there,

how are you doing ? So i've installed mageia after a long while and after installing mageia and adding all the repos (tainted, backport and so on) and i wanted to install 2 things docker and visual studio code. But i can't find visual studio code in the repos and I haven't found a tutorial to install from rpm made by MS on mageia.

Any suggestion or tutorials?

Thank you

Re: visual studio code not available in any repo?

PostPosted: Nov 16th, '20, 14:45
by setlec
I've found an installer script that should help https://github.com/fusion809/vscode-installer , I'm trying it now so I will let you guys know of it later.

Re: visual studio code not available in any repo?

PostPosted: Nov 17th, '20, 02:49
by doktor5000
Have you tried to install via the upstream repositories? https://code.visualstudio.com/docs/setu ... tributions

Re: visual studio code not available in any repo?

PostPosted: Nov 20th, '20, 02:18
by forlesen
I'm running Mageia 7, and have Visual Studio Code installed (from the repos I believe).

Package name: code
Version: 1.45.0
Release: 1588868440.el7
Arch: x86_64

What might be confusing and making it hard to find, is that one would expect the package to be named vscode or visual studio or similar.

Re: visual studio code not available in any repo?

PostPosted: Nov 20th, '20, 18:12
by doktor5000
Check the distsuffix (el7) - this is not a package from Mageia repos, it's directly from Microsoft, the upstream repos I've linked to above.

Re: visual studio code not available in any repo?

PostPosted: Nov 23rd, '20, 23:15
by forlesen
doktor5000 you are quite correct. My mistake.

Installing on a fresh install of Mageia 7, it seems to be quite straightforward:
1. Go to https://code.visualstudio.com/
2. Select Download (top right)
3. Click on the 64 bit RPM, download it. The current version is code-1.51.1-1605051791.el7.x86_64.rpm
4. Install it. You'll need root privileges, e.g.
sudo rpm -i code-1.51.1-1605051791.el7.x86_64.rpm
Installs it under development tools, development environments

Being a manual install, Visual Studio will not auto-update.

5. For subsequent updates, you'll download the latest rpm
sudo rpm -U <rpm for update>

As far as my notes indicate, this is all I did to get a working copy.

Re: visual studio code not available in any repo?

PostPosted: Nov 23rd, '20, 23:25
by doktor5000
forlesen wrote:Being a manual install, Visual Studio will not auto-update.

Why not simply follow the documentation ? https://code.visualstudio.com/docs/setu ... tributions
Will add this as a regular repo so you will automatically get updates via dnf once they are released.

Re: visual studio code not available in any repo?

PostPosted: Nov 24th, '20, 04:02
by forlesen
Adding the repo and getting getting updates is how it should be done.