I also think it would be good to have something like a snap, distribution agnostic and auto update from the repository. However, I would prefer flatpak. Snap is more of an Ubuntu thing that kinds of work in other distributions. But flatpak support is generally better in most distributions: https://flathub.org/home https://flatpak.org/
Even on Ubuntu, I have replaced most of snaps by flatpak version of the apps. On Fedora, I have no problems with Flatpak but snap support was not so good.
However, there are still some issues regarding how to expose command line applications in flatpak:
I think the strict confinement model could actually be an advantage to a Julia snap for people concerned about all the issues discussed here: Pkg: attack vectors . Malicious packages might not be a major problem if Julia can’t see your home directory.
The major issue with Flatpak is the integration with Atom and VSCode, which currently can’t be got to work (see this issue and this thread). But that doesn’t prevent creating a Julia Flatpak which is usable from the commandline. Users have to create a symlink manually, which is inconvenient but not the end of the world either.
I had made a Flatpak for Julia 0.6. If somebody wants to update it to 1.1 and publish it to FlatHub that would be useful. Most/all of the work should be updating the versions of dependencies.
On most machines this would make Julia perfectly unusable, except for sending commands and receiving output via pipes.
I was enthusiastic about snap first, but I think that the installers/tarballs are now very convenient and impose much less of a maintenance burden (cf install-julia). I guess a snap/flatpak/etc package will be maintained when someone really wants to do it.
I’ve looked through the available programming related snaps (languages and IDEs): most of them use classic confinement mode.
Snaps declaring their confinement as “classic”, have access to the rest of the system, as most legacy (debian packages for example) packaged apps do, while still benefiting from the ci-integrated store model, with automated updates, rollbacks to older versions, release channels, etc. (From https://blog.ubuntu.com/2017/01/09/how-to-snap-introducing-classic-confinement)
With this the connection to atom shouldn’t be a problem.
Being able to use a OS supported installation/rollback method instead of manual scripts sounds compelling to me.
With all the talk about Julia should be easy for beginners e.g. by shielding them from understanding scoping, I wonder why it is never a problem for teachers to require the shell, tar, symbolic links and environment variables like PATH until you can start Julia.
Currently the LTS track seems to be available only (1.0.4) but perhaps other versions will become available. I just installed Julia snap on my openSUSE system and it works fantastically. Thank you for everyone who made this possible.
Yes, Alex Arslan (mostly) and I put that up last week. We are using “classic” confinement mode (so you can e.g. actually access files ), which is what other languages seem to do. We eventually plan to provide “tracks” for different minor versions of julia, but snap wasn’t originally designed for programs with multiple user-selectable versions so doing that is not easy enough yet. I think it will get there though.
Related to Snap, I have no idea how the installation process works, but I found a few people that installed 32-bit version of Snap Julia on 64-bit systems, causing troubles with binary dependencies.
That snap release was published half a year after Julia 1.1 was available, so I assume that the publisher intended to provide the LTS version, not the latest stable version.
v1.0.4 is still one patch behind the latest LTS version, so it could be updated indeed, but depending on what version you expected, it is not that far away.
@ararslan mentioned on Slack that it’s not yet decided if they want to support snap further on, as it incurs some overhead.
I’d for one prefer snap over distributions trying to compile and build Julia on their own, so I’ve created a PR to update the snap to 1.0.5 (https://github.com/JuliaCI/julia-snap/pull/4).
Recently moved to linux (Manjaro/Arch) and needed to decide between Snap, official binaries, pacman…
Noted the Snap wasn’t latest version, so went with pacman install which gave latest v1.2 Not sure if I would have had the Arpack build issues (described here Resolved: Arpack deps.jl Linux build issue) with Snap or binaries.
Another thing that is a bit confusing (or just new and something else to understand) is the appearance of all the “loops” in the form /dev/loopXXX in my mount list:
If you are an Arch user, I assume that you are comfortable with the command line, so just git cloneing the repo and compiling the version you need is also an option.
Thanks for the input Tamas, appreciated. Haha, as comfortable as can be after 3wks, am wresting w/ keybinding conflict in ~/.zshrc atm to get command history search to work properly.
Have sort of been avoiding use of Snap/Snapstore (hence interest in this thread) and current process with Julia or any other package is:
search if package is available via pacman using sudo pacman -Ss <packagename>; install if available; watch for dependencies, optional dependencies and install those as needed
if git repo avail, git clone <gitlink> into specific pkgtmp directory, take a look at the PKGBUILD file, then makepkg -si.
if above isn’t an option, try Yay and Pamac next.
if those don’t pan out, download a tarball using wget, tar -xvzf <tarball>, and go from there.
Looking at notes, it seems snapd and snap were different and was guided in arch forums to use snapd if I recall, notes:
In Ubuntu and Debian, my strategy is to use packaged solutions from the distribution repositories for 99% of software, and compile from source for the rest which is critical for me and has a rapid update cycle.
I think Julia is very well set up for just downloading/cloning the source, compiling it, and running from that directory without any “installation”. I find this much more convenient than any alternative.
If somebody is still interested in snap for more recent julia version, I’ve created a snap for current stable 1.3.1. It is named julia-mrcinv and is built from this snapcraft config. The name of the executable is julia-mrcinv but it can be linked to julia by putting snap run julia-mrcinv into a script or using alias.
I do that too, but on my previous laptop that was not feasible due to hard drive limitations imposed by my employer. Also students often find themselves in a situation in which ther computer environment is constrained in various ways, making compilation and certain ways of installing software difficult.