You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see you've decided to go for 'vscode' as command instead of 'Code' or 'code', this had me confused at first but I actually like it, I've always felt that 'code' was a little ambiguous to have in my path.
Daniel Imms (@Tyriar)rpm can actually import the GPG key via http directly, simply run: sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
Turns out the GPG key import can be skipped altogether, if the .repo file contains the key's URL in the gpgkey configuration variable. dnf install code will notice that the key is missing and prompts the user about downloading it:
Downloading Packages:
code-1.9.1-1486597190.el7.x86_64.rpm 1.9 MB/s | 50 MB 00:26
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.9 MB/s | 50 MB 00:26
warning: /var/cache/dnf/code-1a27fa61fdd77ffb/packages/code-1.9.1-1486597190.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID be1229cf: NOKEY
Importing GPG key 0xBE1229CF:
Userid : "Microsoft (Release signing) <gpgsecurity@microsoft.com>"
Fingerprint: BC52 8686 B50D 79E3 39D3 721C EB3E 94AD BE12 29CF
From : https://packages.microsoft.com/keys/microsoft.asc
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : code-1.9.1-1486597190.el7.x86_64 1/1
Verifying : code-1.9.1-1486597190.el7.x86_64 1/1
Installed:
code.x86_64 1.9.1-1486597190.el7
Complete!
I can confirm Lenz Grimmer (@LenzGr)'s variant works for dnf. I'm not sure older versions of yum have the automatic GPG key import feature though, so it probably makes sense to keep that step separate in any yum-specific docs.
If anyone would like to contribute tested instructions similar to the the new RHEL install section for zypper (use heading "openSUSE and SLE based distributions") that would be awesome. This could be done via a PR to the vnext branch of vscode-docs 😃
Activity
mackenza commentedon Nov 21, 2015
see #269 for further discussion on this
jwulf commentedon Nov 22, 2015
You could maintain the package and have it in the main Fedora repository:
https://fedoraproject.org/wiki/Packaging:Guidelines
ncoghlan commentedon Nov 23, 2015
For a relatively standalone application like this, a COPR repo would likely be a better fit than the main Fedora package repos: https://developer.fedoraproject.org/deployment/copr/about.html
1dot75cm commentedon Nov 25, 2015
I just packaged
vscode. Can you help me test it? Florian Kaiser (@fnkr)https://copr.fedoraproject.org/coprs/mosquito/vscode/
bgse commentedon Dec 10, 2015
Edit: Ignore this comment, apparently I've managed to consistently misspell mosquito quite many times... sorry for the inconvenience.
bgse commentedon Dec 10, 2015
Works fine, installs without any apparent issues.
I see you've decided to go for 'vscode' as command instead of 'Code' or 'code', this had me confused at first but I actually like it, I've always felt that 'code' was a little ambiguous to have in my path.
[-][Feature Request] rpm & repository for Fedora Linux[/-][+]rpm & repository for Fedora Linux[/+]bgse commentedon Dec 13, 2015
1dot75cm Tested on F21 and F23, looking good so far.
1dot75cm commentedon Dec 13, 2015
Thanks test. Benjamin Gerfelder (@bgse)
In fact, I refuse to 'Shift' key. My little finger is very fragile. :)))))))))
40 remaining items
ismail commentedon Feb 20, 2017
Daniel Imms (@Tyriar) you are right, after installing the Microsoft signing key, just put a vscode.repo file under /etc/zypp/repos.d with the content
LenzGr commentedon Feb 20, 2017
Daniel Imms (@Tyriar)
rpmcan actually import the GPG key via http directly, simply run:sudo rpm --import https://packages.microsoft.com/keys/microsoft.ascLenzGr commentedon Feb 20, 2017
Turns out the GPG key import can be skipped altogether, if the
.repofile contains the key's URL in thegpgkeyconfiguration variable.dnf install codewill notice that the key is missing and prompts the user about downloading it:LenzGr commentedon Feb 20, 2017
I wrote a short HOWTO for Fedora (and other yum-based distributions): Installing Microsoft Visual Studio Code on Fedora Linux
Tyriar commentedon Feb 20, 2017
Lenz Grimmer (@LenzGr) Apparently
dnfunderstandsyumrepos, that's cool! That's pretty similar to the setup for the apt repo, see #2973 (comment)Not sure it would work with plain yum though on older OS's.
bgse commentedon Feb 20, 2017
Daniel Imms (@Tyriar) Should work, my guess is that something else will break on a 10 year old distro before yum refuses to play.
LenzGr commentedon Feb 21, 2017
Daniel Imms (@Tyriar)
dnfis actually the "next upcoming major version ofyum" (according to the man page), so this should not be surprising ;)And SUSE's
zypperis capable to work with plain yum repos as well. Less work on your end. ;)ncoghlan commentedon Feb 23, 2017
I can confirm Lenz Grimmer (@LenzGr)'s variant works for
dnf. I'm not sure older versions ofyumhave the automatic GPG key import feature though, so it probably makes sense to keep that step separate in any yum-specific docs.iavael commentedon Feb 23, 2017
Alyssa Coghlan (@ncoghlan)
yum had this feature for a long time
Tyriar commentedon Mar 1, 2017
Thanks for the help everyone!
If anyone would like to contribute tested instructions similar to the the new RHEL install section for
zypper(use heading "openSUSE and SLE based distributions") that would be awesome. This could be done via a PR to the vnext branch of vscode-docs 😃hughsie commentedon Mar 8, 2017
Would it be possible to export the AppStream metadata on this repo too? This will make the app show up in the software center when the repo is installed. See https://blogs.gnome.org/hughsie/2016/04/27/3rd-party-fedora-repositories-and-appstream/ for the fix. Please yell if you have any questions or worries. Thanks!