Slashdot Mirror


Adios Apt and Yum? Ubuntu's Snap Apps Are Coming To Distros Everywhere (arstechnica.com)

An anonymous reader shares an Ars Technica report: Ubuntu's "snappy" new way of packaging applications is no longer exclusive to Ubuntu. Canonical today is announcing that snapd, the tool that allows snap packages to be installed on Ubuntu, has been ported to other Linux distributions including Debian, Arch, Fedora, and Gentoo among others. To install snap packages on non-Ubuntu distributions, Linux desktop and server users will have to first install the newly cross-platform snapd. This daemon verifies the integrity of snap packages, confines them into their own restricted space, and acts as a launcher. Instructions for creating snaps and installing snapd on a variety of distributions are available at this website. Snaps can exist on the same system as either deb or RPM packages. Snaps aren't the only new package manager for Linux distributions that aims to simplify installation of applications. There's also AppImage and OrbitalApps.

45 of 274 comments (clear)

  1. lol by Anonymous Coward · · Score: 2, Funny

    Hay, finally a universal app for Linux!

    1. Re:lol by Thud457 · · Score: 3, Funny

      #include obXKCD 927

      --

      the preceding comment is my own and in no way reflects the opinion of the Joint Chiefs of Staff

  2. And hello problems by phorm · · Score: 5, Insightful

    Adios to tried and true package managers, hello dependency and network/firewall hell as you try to resolve conflicts between the different sources?

    1. Re:And hello problems by Anonymous Coward · · Score: 3, Funny

      Curses you package installer!!! No really, how do I install Curses with this?

    2. Re:And hello problems by tlhIngan · · Score: 5, Informative

      Adios to tried and true package managers, hello dependency and network/firewall hell as you try to resolve conflicts between the different sources?

      Well, snaps actually are trying to solve this.

      Let's say you have a critical program you need for your work. And let's also say that it needs specific versions of software installed - you can't upgrade those dependencies or your risk breaking the program.

      Now, all package managers have the ability to freeze a package - that is, prevent updating it. So you dutifully do it, and it works great - in the beginning. Slowly as time goes on the number of updates you get will slow to a trickle as you get more and more new packages dependent on newer versions of the dependencies. Eventually you'll get to a point where you can't install anything as what you want needs a newer version than what you have, or is dependent on things that need a newer version.

      Snaps help solve that - your program can be made into a snap with the versions of libraries it needs, while the rest of your system marches forward

      It doesn't matter what the application is - if it needs specific revisions of dependencies, holding back can lead to various DLL hells.

      Snaps won't replace apt or yum - those tools are always going to be required. Snaps are useful for programs with a tricky set of dependencies to have them easily met

    3. Re:And hello problems by phorm · · Score: 2

      TFS does a crappy job of describing that, as certainly no such system is going to replace the primary package manage (apt/yum).

    4. Re:And hello problems by Dadoo · · Score: 5, Insightful

      Snaps help solve that - your program can be made into a snap with the versions of libraries it needs, while the rest of your system marches forward

      That sounds a lot like the "winsxs" folder, which is currently eating up 25% of the total space on my Windows machine, for no good reason. Having the same "feature" on Linux really doesn't thrill me.

      --
      Sit, Ubuntu, sit. Good dog.
    5. Re:And hello problems by jenningsthecat · · Score: 2

      Snaps are useful for programs with a tricky set of dependencies to have them easily met

      I suspect snaps will be used for far more than 'tricky dependencies'. They'll be used as an excuse to not keep code up-to date, because developers will be able to continue using obsolete 'legacy' libraries instead of coding against newer ones which will presumably be more secure and/or more stable.

      Having said that, I still look forward to the day when I can install a snap of almost any application, in almost any version, (and even several versions of one program, say, Kicad), and be fairly likely to have them all Just Work. Besides, I like the idea of programs being more self-contained - in spite of the redundancy factor and the additional drive space required, it just seems cleaner to me.

      --
      'The Economy' is a giant Ponzi scheme whose most pitiable suckers are the youngest among us and the yet-unborn.
    6. Re:And hello problems by cheesybagel · · Score: 4, Insightful

      So in other words the "solution" is the Microsoft way of shipping a copy of the .dlls with every single program. So if someone finds a security issue with .dll (say OpenSSL) even if the bug gets fixed in the library you need to issue updates to all the apps as well. Fun.

    7. Re:And hello problems by jandrese · · Score: 4, Insightful

      But this way when a library has a security vulnerability you will never be rid of it.

      --

      I read the internet for the articles.
    8. Re:And hello problems by Anonymous Coward · · Score: 5, Insightful

      FUCKING AWESOME!

      You mean certain programs can opt to keep using vulnerable libraries?! YES! Soon Linux will finally catch up to Windows in terms of malware thanks to Snap!

    9. Re:And hello problems by yithar7153 · · Score: 2

      That sounds a lot like the "winsxs" folder, which is currently eating up 25% of the total space on my Windows machine, for no good reason. Having the same "feature" on Linux really doesn't thrill me.

      Well, I don't quite think the way Windows deals with shared libraries is correct, because it's pretty tough on SSDs. However, as far as I know, snaps install themselves into your home directory, so in the worst case you could just delete the libraries if you're not using the program anymore. Windows is far worse, where there's a good chance you won't be able to boot into windows anymore if you tamper with the winsxs folder (outside of using dism.exe to clean up installation files and whatnot).

    10. Re:And hello problems by Tough+Love · · Score: 2

      Let's say you have a critical program you need for your work. And let's also say that it needs specific versions of software installed - you can't upgrade those dependencies or your risk breaking the program....

      It seems that you have not heard of library symbol versioning.

      --
      When all you have is a hammer, every problem starts to look like a thumb.
    11. Re:And hello problems by Immerman · · Score: 2

      What would be really nice is if libraries would report backwards compatibility, so that you could default to using the latest version compatible with your program, but still have the "canonical" version bundled in case of program-breaking changes.

      It sounds like Snaps are primarily targetting desktop software, and frankly if it's a choice between being as up-to-date and secure as possible, or being able to actually run the program that does what I need to do, I'll choose the second one every time. Besides, very little of my software ever connects to the internet, most rarely even opens potentially malicious files.

      --
      --- Most topics have many sides worth arguing, allow me to take one opposite you.
  3. Where can I find a UNIX-like Linux distro?! by Anonymous Coward · · Score: 4, Insightful

    In the year 2016, where can I, a long time Linux user, get a decent UNIX-like Linux distro?!

    What I mean by that is a Linux distro that follows the UNIX philosophy of simplicity, doing one thing well, openness, and modularity.

    All of the major distros today, including conservative ones like Debian, are rife with systemd, GNOME 3, now this "snap" crap, and all sorts of other shenanigans that violate the UNIX philosophy.

    I don't want to use a goddamn relic like Slackware, either. I guess what I want is Debian, but just before systemd was forced on Debian users. So a distro that's sensibly conservative, that's reliable, that works, and that follows the UNIX philosophy.

    And don't even bother suggesting Devuan. It's a terrible, terrible joke of a distro in my experience. Conceptually it's what I'd want, but in practice I've found it to be a total shitfest.

    At this point I don't think I'll have any choice but to use FreeBSD. Yeah, it's not Linux, but I don't think that I even care about using Linux at this point. I need a UNIX-like system, and if FreeBSD can deliver (and all of the evidence suggests that it can!) maybe I should just say to hell with Linux and use FreeBSD instead.

    1. Re:Where can I find a UNIX-like Linux distro?! by LichtSpektren · · Score: 3, Insightful

      Your post is rife with self-contradiction. Pick one:

      1) I want to avoid modern technologies as much as possible because I hate them (therefore use Slackware, Devuan, CRUX, Gentoo, etc.).
      2) I want a modern distro that uses mainstream technologies (therefore use Ubuntu, Fedora, openSUSE, Debian, etc.).
      3) I want my own custom mix of 1 & 2 exactly how I like it (therefore make your own distro).

    2. Re:Where can I find a UNIX-like Linux distro?! by jedidiah · · Score: 4, Interesting

      It's not a contradiction. A better way of putting it might be "more Unix and less Windows please".

      It remains to be seen whether today's iteration of "yet another standard" is going to reduce the number of standards or just increase them (as is usually the case).

      Also, dpkg and rpm are already widely supported. Moving to something new wipes out all of that progress. Churn for it's own sake in general does that.

      We're not Microsoft. We can't burn something down and completely redo it every release like they do. We don't have the clout for people to put up with that kind of nonsense.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    3. Re:Where can I find a UNIX-like Linux distro?! by LichtSpektren · · Score: 2

      It's not a contradiction. A better way of putting it might be "more Unix and less Windows please".

      It remains to be seen whether today's iteration of "yet another standard" is going to reduce the number of standards or just increase them (as is usually the case).

      Also, dpkg and rpm are already widely supported. Moving to something new wipes out all of that progress. Churn for it's own sake in general does that.

      We're not Microsoft. We can't burn something down and completely redo it every release like they do. We don't have the clout for people to put up with that kind of nonsense.

      Ignore the clickbait headline. Nobody is saying "deprecate apt and yum". Snappy was invented to be used in parallel to them.

    4. Re:Where can I find a UNIX-like Linux distro?! by inode_buddha · · Score: 2

      Here's the way I'm going. I'm happy with slackware nowdays tho. Pretty easy tp update it. It actually *is* pretty close to a classical UNIX, but of course BSD actually *is* UNIX.... bear in mind that originally UNIX didn't *have any* package management. It required you to use your brain and put in some effort. In many cases it still does, compared to the other systems on the market.

      --
      C|N>K
    5. Re:Where can I find a UNIX-like Linux distro?! by cmiller173 · · Score: 2

      Slackware current has updates a recent as today, how exactly is a still actively maintained distro a relic? Or are you referring to their website which hasn't been updated in ages?

    6. Re:Where can I find a UNIX-like Linux distro?! by skids · · Score: 4, Insightful

      I don't know if I'd throw the term "modern" around so much as "trendy". After all, isolating apps in containers where they cannot integrate with the rest of the OS is pretty much warmed over mainframe thinking.

    7. Re:Where can I find a UNIX-like Linux distro?! by corychristison · · Score: 2

      Ever try Gentoo? or Funtoo?

  4. I Like Apt by Thelasko · · Score: 4, Informative

    When I first tried Linux, I didn't understand the repository system. I had been so used to the Windows .exe files I didn't understand downloading my programs from a single secure repository. One day, it clicked. The repository system is so much better. No more worrying about compatibility, or someone adding malicious software to my programs. It all comes from one secure repository and is known to be compatible with my system.

    In fact, that model works so well, Apple and others now use the same model. They call it an "App Store". I've even heard rumors that Microsoft wants to switch to this model

    So, why is Linux going back to the old, and inferior way of doing things?

    --
    One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
  5. Clickbait headline... by LichtSpektren · · Score: 4, Insightful

    1) DEBs and RPMs aren't going anywhere; they serve different functions from Snappy Core. Snaps are better for servers that require zero downtime because they prevent ABI breakage as packages are updated asynchronously. DEB and RPM are better for desktop, mobile, and less-important servers because they take up monumentally less room (because you don't have to have a million versions of the same dependency installed at the same time).

    2) As TFS indicates, Snaps can coexist with all the other packaging tools (apt, dnf, yum, zypper, slapt, portage, pacman, etc.).

    3) A large percentage of the Linux community are [a] too suspicious of Canonical to ever adopt any of their technologies and [b] conservative to the tried-and-true methods of doing things. apt will probably live forever on account of that.

    1. Re:Clickbait headline... by gmack · · Score: 5, Insightful

      I don't know if I agree with point 1. SNAPS (as a concept) should be better for third party apps because the APP as it is packaged, now imports all of the libraries it needs. The downside of course, l is that if some library has a security issue, you must wait for the package maintainer of each SNAP app that contains it to do the update.

  6. Whatshisname's Law says... by Pseudonymous+Powers · · Score: 2

    ...that the answer to any question posed in a headline is "No".

    I'd be all for a single consistent package management system for Linux that everyone could get behind. This isn't that. This is just a third option everyone's going to have to deal with.

  7. Snappy Appy APP! (not the app guy) by RavenLrD20k · · Score: 2

    Et tu, Gentoo? Then fall Linux

    Snapd seems to be spreading with the same wildfire potential that systemd did. I hope I'm cringing over nothing in this case and snapd will only be an optional package management system (so far it sounds like it). But I'm leery. Systemd fractured a lot of distros with the "my way or the highway" attitude they had over it. I managed to avoid it on my servers where just about everything run on it right down to the compiler time sharing are background user processes. If even more distros move on pushing snapd in the same way it may finally be time for me to look into one of the Beasties to migrate to... either way, there's going to be a lot of workflows that will need analysis for migration one way or the other.

    1. Re:Snappy Appy APP! (not the app guy) by LichtSpektren · · Score: 2

      systemd didn't "do" anything. Most Linux distro communities voted or otherwise decided that they only wanted to support systemd.

      Snappy Core used by itself has a lot of disadvantages to apt, yum, etc. so it likely won't replace any of them (ignore the clickbait title). However it can be used well in parallel to them.

    2. Re:Snappy Appy APP! (not the app guy) by LichtSpektren · · Score: 2

      Most Linux distro communities voted or otherwise decided that they only wanted to support systemd.

      "Wanting to support" something and "accepting it because upstream is shoving it down your throat and forking is too much work" are two different things.

      What's the "upstream" here? The only case where that seems to apply is Ubuntu switching from upstart in order to stay in sync with Debian. Fedora, openSUSE, Debian, and Arch all decided entirely of their own volition.

    3. Re:Snappy Appy APP! (not the app guy) by a_n_d_e_r_s · · Score: 2

      They made Gnome dependent on systemd which pushed it on the distrobutions.

      --
      Just saying it like it are.
    4. Re:Snappy Appy APP! (not the app guy) by JImbob0i0 · · Score: 2

      Snapd seems to be spreading with the same wildfire potential that systemd did.

      Not really ... it was pushed to AUR which anyone can do and is in COPR like anyone can do.

      No one from the Fedora side has worked on this, the Canonical employee who has that COPR is not a Fedora packager and the various desktop communities have been coordinating on Flatpak

      I'd strongly suggest never taking a Canonical Press Release at face value given the recent history with them...

  8. "snapd"? by idontgno · · Score: 2, Funny

    We all know this technology won't really be mature until "snap management" is fully subsumed and integrated into systemd, where it belongs.

    --
    Welcome to the Panopticon. Used to be a prison, now it's your home.
  9. Gentoo user here... by nimbius · · Score: 2

    And i think i speak for us all when I say I'll be in the cold cold ground before i ever trust some bull-shit packager repository more than portage. Shuttleworth can eat my ass like groceries.

    --
    Good people go to bed earlier.
    1. Re:Gentoo user here... by LichtSpektren · · Score: 2, Insightful

      And i think i speak for us all when I say I'll be in the cold cold ground before i ever trust some bull-shit packager repository more than portage. Shuttleworth can eat my ass like groceries.

      I don't understand the hostility. Canonical developed a new tool for you to use if you want to, for free (as in both beer and speech). Nobody is taking portage away from you.

    2. Re:Gentoo user here... by Junta · · Score: 2

      I think it's a lot of paranoia related to the systemd controversy. Before that, things that people might have bitched about could be used or ignored at will. systemd, being a pretty core init system is something people couldn't easily step away from as an individual choice (unlike, say, desktop environments). Now *every* thing that could *conceivably* be construed as 'core' is going to be regarded with more worry than before.

      --
      XML is like violence. If it doesn't solve the problem, use more.
  10. If this replaces repos... ugh by adosch · · Score: 2

    Seems like all my /. posts have been crabby, complacent, old-hat UNIX/Linux sys-admin ranting as of late. F me I need to lighten up...

    With that out of the way, I do have to say: Who said that installing packages was hard on a *NIX platform that we needed snapd to solve this? I'm sorry, I really think package repositories like apt/yum are gosh-darn God-sends when set up, populated, built and maintained correctly. I use them in-house and it really makes deployment, configuration management, deployment and all that stuff most people care about, well, easy. Why would I need 'another' package manager to sit 'alongside' my existing one to do updates? In regards to RPM based distros, isn't that what drpms and alike were suppose to solve? And not to mention you can checksum, roll-back, push/pull version specific, ect.

    This just sounds like yet another shitty reinvention of wheel idea with YOLO douchey distro dev backers that I'm going to see take over yet another great part of Linux distro's as we know it --- I thought enough was enough with systemd.

  11. Re:Why switch? by Fly+Swatter · · Score: 5, Insightful

    Its main purpose is for servers that require zero downtime, where you want to upgrade application X and/or its dependencies without breaking even the smallest functionality of application Y.

    I disagree, snapd is Canonical's attempt to bring an android/ios like 'app universe' to their linux OS. Unfortunately if it succeeds, I also forsee it bringing the in-app advertisements and micro-payments mess :(

  12. Re:You're making up contradictions that don't exis by cfalcon · · Score: 2

    It is trivial to avoid GNOME in every distro I've looked at. I really dislike GNOME 3, and as a result I avidly avoid anything by the GNOME team. I've had no problem doing this! It is really easy to never touch GNOME.

    SystemD is not a deal breaker for me, but I would avoid it if it were easy to do so. It does not appear to be. Slack and Gentoo can function just fine with any other init system, and Devuan will hopefully eventually scratch that itch. If the requirement is "no systemd", you are ultimately going to be doing some kind of integration right now. I figure at some point there will either be a distro without systemd, or systemd will have had enough fixes shoved down its throat that using it is fine.

    I think ultimately the community has been taken by surprise at the massive surge in most distros toward systemd. Different distros have all kinds of diverse things under the hood, different package managers, different locations for stuff, etc. But systemd just swarmed over everything, it seems really odd.

  13. Re:You're making up contradictions that don't exis by LichtSpektren · · Score: 4, Insightful

    There's no contradiction.

    1) Systemd and GNOME 3 aren't the only "modern technologies" out there. They are among the most anti-UNIX-philosophy ones. There are other modern init systems and desktop environments that do follow the UNIX philosophy, we just see the major distros treat them as second-class citizens, although they're typically superior to systemd and GNOME 3.

    2) The point of using a mainstream distro is to get access to the wide community support network and the benefits it brings, including more testing of releases and quicker bug/security fixes.

    3) The whole point of using a Linux distro is to avoid having to roll your own! In the past there used to be choice among the major distros. Debian is what you used when you wanted a system that worked. SuSE is where you went if you liked KDE. Ubuntu is where you went if you wanted a Windows-like experience. Fedora is where you went if you wanted to subject yourself to Red Hat-produced shit.

    I know you're intentionally ignoring the real problem here: the fact that the major Linux distros have converged to the point where they're nearly identical. Worst of all, they've chosen to converge on software that exhibits a very anti-UNIX approach, such as systemd and GNOME 3.

    Today, a modern Linux distro installation is closer to Windows than it is to anything resembling UNIX. The Linux userland has become a cheap imitation of Windows in so many ways, from the GUI down to the init and service management systems.

    If you want a Linux distro that doesn't use systemd, you have a lot of options. But your complaint seems to be that that most of the Linux community has moved away from your preference. Well I'm sorry princess that you're not in the majority anymore, so either get comfortable in the minority, get your hands dirty with the majority, or do the work getting things exactly how you want them. But I'm not terribly sympathetic to your complaints if you're sad that the rest of the world isn't 100% empathetic to your desires, sparing you from the work of making your own perfect distro to your preferences.

    At least I can understand the systemd complaining, because most distros don't support sysvinit or upstart anymore. But I really don't get the GNOME 3 bitching. I hate it just as much as you do, but literally every single one of the big distros (so that's Ubuntu, Fedora, openSUSE, Debian, CentOS, Arch and Gentoo) support alternatives.

  14. Re:You're making up contradictions that don't exis by mark-t · · Score: 5, Informative

    Old does not mean bad.

    Slackware is old, but certainly not a relic. And boasts a stability track-record that most other distros simply do not match. It not only adopts the unix philosophy, but embraces it so fully that the only comparable distros to it in this regard that I know of are Arch and Gentoo. Gentoo is a bit of a bitch because you have to compile everything, which can take a long time when doing system updates, and Arch is regretfully somewhat less stable than Slackware because it updates its packages so frequently (although if you are willing to risk some stability in the interests of running the bleeding edge versions of all available packages, Arch might be right up your alley).

    But slackware is still being actively maintained, despite having longer release cycles than most other distros. Slackware is at a release candidate stage for 14.2 in slackware-current at the moment, and I'd be honestly quite surprised if 14.2 wasn't released sometime this summer or fall.

  15. Re:You're making up contradictions that don't exis by Anonymous Coward · · Score: 2

    most of the Linux community has moved away from your preference

    What we actually see is that the Linux distro maintainers have moved away from the preference of the Linux community.

    That's why there has been such a huge uproar about systemd. Systemd is not what Linux users want. It's what Red Hat wants.

    As we saw from the debacle around forcing systemd into Debian, systemd may make the maintainers' lives easier, but it absolutely ruins the Linux experience for the users.

    People using a Linux distro in the first place don't have time to be rolling their own. So they're moving to FreeBSD, OS X, and even Windows, because Linux distros now deliver an experience that's worse than all three of those.

    The fact that Linux is at, what, 1% or 2% of the desktop market, despite the massive opening that Windows 8 and even Windows 10 have left for it, just goes to show how modern Linux isn't what people want.

    The resurgence of FreeBSD, fueled mainly by Linux refugees, further reinforces the idea that modern Linux isn't what server users want, either.

    I really hate to say this, but traditional Linux distros are all withering away. They're a lot like Firefox. They have some momentum which makes them appear relevant, but the long term trend is a very negative one, with them becoming irrelevant not too far into the future. At least Firefox had 30% or more of the market at one point. Linux distros never got that far!

  16. Snaps are apps? by PPH · · Score: 2

    That run in some sort of 'restricted' space? Fine. But what about all the other components of a Linux distro that aren't apps, can't run in a restricted space and will never be ported to the Snap model?

    I think apt, yum and their kin will be around for a long time. Snap sounds like an environment written for people like the ones that thought Microsoft Windows Metro apps would be all that users would need.

    --
    Have gnu, will travel.
  17. Re:Weren't there security problems? by bregmata · · Score: 2

    You recall a kerfuffle over the fact that if you use X11 on a system you are no more secure than X11 is (which is to say, not very). Snaps do not allow one single system-wide X11 server, so that particular flaw is avoided.

  18. Re:You're making up contradictions that don't exis by danomac · · Score: 4, Interesting

    Disclaimer: I've been using Gentoo since 2002/2003.

    I agree that Gentoo's build process is cumbersome, especially on slower processors. This is a lot less of an issue now as compared to when I started using it in '02/'03, when I probably had five-year-old hardware then. Larger packages like Firefox and LibreOffice have always had a binary package to install. (On my 2002-era machine libreoffice would take something like 9 hours to compile.) My machine now, which is around 8 years old compiles this same package in a bit over an hour.

    However, Gentoo also has another huge benefit, and that is customizing packages to your needs using USE flags. These toggle build-time options, so as an example, when heartbleed came out I was able to remove the offending tls heartbeat component using a USE flag and rebuild the package until a fix was made available.

    Another thing I've discovered is if you have similar hardware and similar configurations you can tell portage to build binary packages. If you share this directory via nfs export you can instruct portage to favour binary packages when all use flags and other build-environment options are the same. This has saved my poor celerons on my MythTV frontends quite some compile time.

  19. Re:You're reading them wrong by ssam · · Score: 2

    Soon the software vendors will be shipping snap and flatpak packages, so you can run which every distro version you want :-)