-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpm & repository for Fedora Linux #229
rpm & repository for Fedora Linux #229
Comments
see #269 for further discussion on this |
You could maintain the package and have it in the main Fedora repository: |
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 |
I just packaged |
Edit: Ignore this comment, apparently I've managed to consistently misspell mosquito quite many times... sorry for the inconvenience. |
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. |
@1dot75cm Tested on F21 and F23, looking good so far. |
Thanks test. @bgse |
Hi, @bgse RPM spec: http://copr-dist-git.fedorainfracloud.org/cgit/mosquito/test/vscode.git/tree/vscode.spec?id=17ce85d650470e023ff37e7412d62c5aa222b304
I think, we needs to solve this problem for Linux platform. However, the PR is marked as |
Just now, I try to update electron to
https://copr.fedorainfracloud.org/coprs/mosquito/vscode/build/166475/ |
FYI an official rpm file is going to be provided with the March release #3595, the repository will likely come later. |
@1dot75cm I've tried updating to the latest F23 build, but didn't get far, dnf skipped the package due to dependency issues. Might be able to investigate more towards the weekend. |
A yum repo is now available for stable only, insiders needs to wait until our signing story is automated. Here are the key links:
This is how you can install using # Install key
wget -O- -q https://packages.microsoft.com/keys/microsoft.asc > microsoft.asc
sudo rpm --import microsoft.asc
# Install repo
sudo 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'
# Update yum's cache
yum check-update
# Install
sudo yum install code Please test it out and let me know how it goes. Follow ups
|
@Tyriar appears to work (tested with dnf on F25) although your example to install the repo is missing a double quote. |
@jrick fixed, thanks 😅 |
Should I open a new bug to create an openSUSE repo? |
@ismail you should be able to use this repo, I'm hoping someone familiar with |
@Tyriar you are right, after installing the Microsoft signing key, just put a vscode.repo file under /etc/zypp/repos.d with the content
|
@Tyriar |
Turns out the GPG key import can be skipped altogether, if the
|
I wrote a short HOWTO for Fedora (and other yum-based distributions): Installing Microsoft Visual Studio Code on Fedora Linux |
@LenzGr Apparently Not sure it would work with plain yum though on older OS's. |
@Tyriar Should work, my guess is that something else will break on a 10 year old distro before yum refuses to play. |
@Tyriar And SUSE's |
I can confirm @LenzGr's variant works for |
yum had this feature for a long time |
Thanks for the help everyone! If anyone would like to contribute tested instructions similar to the the new RHEL install section for |
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! |
No description provided.
The text was updated successfully, but these errors were encountered: