this post was submitted on 16 Sep 2024
847 points (97.5% liked)

linuxmemes

24675 readers
1517 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
    847
    Snap out of it (lemmy.zip)
    submitted 7 months ago* (last edited 7 months ago) by 299792458ms@lemmy.zip to c/linuxmemes@lemmy.world
     

    How do you guys get software that is not in your distribution's repositories?

    top 50 comments
    sorted by: hot top controversial new old
    [–] rain_worl@lemmy.world 0 points 6 months ago
    [–] HStone32@lemmy.world 1 points 7 months ago (1 children)

    If I could, I'd compile all my software from source. Unfortunately, it seems a lot of open source developers don't like writing software in C, which means the burden of sorting through dependancy-hell has been deferred to my shoulders instead.

    [–] bjoern_tantau@swg-empire.de 4 points 7 months ago

    In that case install Gentoo. Compiling everything from source is its thing. And on the way it will resolve all the dependencies for you. The dependencies you want.

    [–] BF2040@lemmy.world 4 points 7 months ago (1 children)

    I understand appimages. I use them exclusively. Can someone explain what flatpak and SNAP are and how they work? I have autism so please be as clear and concise as possible?

    [–] Darorad@lemmy.world 4 points 7 months ago (1 children)

    The easiest way to think of it is flatpaks are AppImages with a repository and snaps are flatpaks but bad.

    That has benefits and detriments. Appimages contain everything they need to run, flatpak's mostly do, but can also use runtimes that are shared between flatpaks.

    All flatpaks are sandboxed, which tends to make them more secure. AppImages can be sandboxed, but many aren't.

    Flatpaks tend to integrate with the host system better, you can (kinda) theme them, their updates are handled via the flatpak repo, and they register apps with the system.

    AppImages are infinitely more portable. Everything's in one file, so you can pretty much just copy that to any system and you have the app.

    [–] BF2040@lemmy.world 1 points 7 months ago (1 children)

    That was a fantastic explination, but you forgot to explain SNAP. Oh snap, you forgot SNAP. Intrusive though won. So what is SNAP, how does it work, and why is it bad?

    [–] Darorad@lemmy.world 1 points 7 months ago* (last edited 7 months ago) (1 children)

    Yeah, sorry couldn't resist.

    snaps are very similar to flatpaks and, honestly, is technically better in a lot of ways.

    Snap can be used for basically an entire system, while flatpak is limited to graphical apps. (Ubuntu core is built basically entirely off snaps.)

    Snap is controlled by canonical, and the backend for the snap repo is entirely closed source. I've heard snaps are also easier for developers to work with, but I haven't experienced that side of them.

    Snaps automatically update by default where flatpaks don't.

    Snaps also get treated as loopback devices when they're installed, which bloats a lot of utilities. (And they keep a few old versions around which makes it even worse). For example, you could run lsblk and if you're using snaps like 90% of it will be snaps you've installed instead of actual devices.

    Flatpaks are also noticeably faster to start up, which for desktop apps matters, but wouldn't really matter for a server that's aiming for a lot of uptime.

    The loopback device issue is the main reason I don't use snaps. I also like flatpak being completely open, but realistically that doesn't matter for much. There used to be an open snap store, but that shut down because nobody used it.

    [–] BF2040@lemmy.world 2 points 7 months ago (1 children)

    I tried to install Ubuntu and it kept uninstalling Command Center every reboot. Not a fan of SNAPs. Or Canonical. But thanks for the explination.

    [–] Darorad@lemmy.world 1 points 7 months ago

    Yeah, imo the problems solved by using snaps for core system stuff are better solved with immutable distros, and I see very little reason to use snaps for anything else.

    [–] MehBlah@lemmy.world 4 points 7 months ago (1 children)

    Install from source if there isn't a repo for the software.

    [–] InternetCitizen2@lemmy.world 3 points 7 months ago (1 children)
    [–] MehBlah@lemmy.world 3 points 7 months ago

    Way back in the before times there was only the source.

    [–] nicknonya@lemmy.blahaj.zone 7 points 7 months ago

    it's called snap cos thats what the community will do to your bones if you use it. apparently

    [–] hjjanger@lemmy.world 4 points 7 months ago

    I have yet to find a need to go outside of the Debian repos.

    [–] lengau@midwest.social -1 points 7 months ago

    I pretty consistently find the snaps to be the best trade-off of being up-to-date and stable for me. Especially for CLI tools and services.

    [–] Petter1@lemm.ee 6 points 7 months ago (1 children)

    I don’t really like neither of the 3, personally. But I understand the need and the benefits

    [–] emiellr@lemm.ee 2 points 7 months ago

    I feel like that's a pretty good take. As long as you're getting the software in an elegant way that doesn't break the dev's back, we're good.

    [–] BigDanishGuy@sh.itjust.works 56 points 7 months ago* (last edited 7 months ago) (3 children)

    Why not just stick to what we've always been doing?

    1. wget something.tar.gz
    2. tar something.tar.gz
    3. man tar
    4. tar xzf something.tar.gz
    5. cd something
    6. ls -al
    7. ./config.sh
    8. chmod +x config.sh
    9. ./config.sh
    10. make config
    11. Try to figure out where to get some obscure dependency, with the right version number. Discover that the last depency was hosted on the dev's website that the dev self-hosted when it went belly up 5 years ago. Finally find the lib on some weird site with a TLD you could have sworn wasn't even in latin characters.
    12. make config
    13. make
    14. Go for coffee
    15. make install
    16. SU root
    17. make install
    [–] merthyr1831@lemmy.ml 12 points 7 months ago

    I much prefer our modern package format solutions:

    1. sudo apt install something
    2. open
    3. wtf this is like 6 months old
    4. find a PPA hosted by someone claiming to have packaged the new version
    5. search how to install PPAs
    6. sudo apt <I forgot>
    7. install app finally
    8. wtf it's 2 months old and full of bugs
    9. repo tells me to report to original developer
    10. report bugs
    11. mfw original dev breaks my kneecaps for reporting a bug in out of date versions packed with weird dependency constraints they can't recreate
    [–] PenisDuckCuck9001@lemmynsfw.com 3 points 7 months ago* (last edited 7 months ago) (1 children)

    We should normalize programs that don't use such exotic and impossible libraries that you have to do anything besides type "make" and "make install" for it to work.

    In theory it's a no brainer. In practice not so much.

    [–] Omniraptor@lemm.ee 2 points 7 months ago

    in the end we end up using containers afaict

    load more comments