So I recently installed Cachyos and I am now met with this problem.

There are kind of 2 main contenders here and I’m split between them. What do you use?

There is pacman + aur and then there is flatpak. Pacman has deep system integration and is much more lightweight but it has deep system integration and requires sudo to install. flatpak has sandboxing and easy permission management but it’s bloated and possibly less performant?

Of course if the package isn’t available on flathub then I will have to use the aur but when both are available it’s hard to decide.

  • Pacman plus the AUR is the move on Arch based distros. The AUR gives you access to basically everything, and paru or yay handles the build chain without pain. Flatpak has its place for apps that ship messy runtime dependencies, but for most things it adds an unnecessary isolation layer. Have you tried paru as your AUR helper yet?

    • thingsiplay ( thingsiplay@lemmy.ml ) 
      link
      fedilink
      arrow-up
      16
      ·
      6 months ago

      I sometimes prefer Flatpak over AUR, because I do not trust everyone on the AUR to run scripts with root rights on my system. At least Flatpaks are a bit sandboxed (even if the sandbox is an illusion) and the programs don’t install and run with root rights. Sometimes the Flatpak is from the original developer and the script in AUR is not. Or the AUR script is not updated well and often enough, unlike day one Flatpak updates. But Flatpaks do not integrate well in your system and applications can look out of place too. There is a lot to consider, besides what you already mentioned.

      I use both, prefer the AUR in optimal cases.

  • thingsiplay ( thingsiplay@lemmy.ml ) 
    link
    fedilink
    arrow-up
    12
    ·
    6 months ago

    I use yay, as it comes by default with EndeavourOS. It’s basically an AUR helper that uses pacman and works quite the same.

    Flatpak is a different package manager and has nothing to do with your system packages. They are not exclusive, I use both. So what you basically asking isn’t which package manager people use, but rather which package format.

    • v_krishna ( v_krishna@lemmy.ml ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      Same here, I tried a number of arch derivatives and arch as well when I got a new desktop last year (after many years of mac work computers, iMac desktop for my kids, mostly Alpine images in the cloud/on k8s, and many many years of mostly Debian and fedora derivatives before I had kids and had time to putter around with *nix). Endeavor suited my needs (some local LLM stuff, personal browsing, a few OSS projects, and Steam) and yay has generally worked great to bridge the gap between pacman and aur.

  • Ooops ( Ooops@feddit.org ) 
    link
    fedilink
    arrow-up
    9
    ·
    6 months ago

    Paru, so Pacman & AUR…

    With exactly one exception: Steam via flatpak because that’s the single package left that would need 32bit libraries from multilib-repo since Wine finally left those dependencies behind.

      • Ooops ( Ooops@feddit.org ) 
        link
        fedilink
        arrow-up
        1
        ·
        6 months ago

        I didn’t have any actual issues with the native install either.

        But with [multilib] activated there were dozens and dozens of 32bit libraries pulled alongside their regular version that I didn’t actually need. And I use Wine a lot more than Steam anyway. So once Wine went fully 64bit I decided to get rid of all that legacy multilib 32bit stuff.

        Steam via flatpak also works and will do until they, too, fully switch over to WoW64 implementation.

  • Ada ( ada@piefed.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 months ago

    I don’t like Flatpak, so that makes it an easy choice for me. Flatpak apps never quite integrate properly

    I like having Flatpaks as a fallback option, but if something is available in the arch repos, aur or chaotic-aur, I’ll always go there first

      • (I can’t see the edited out part but if it was about yay…)

        Yay builds in your local cache and then when it is ready to install it asks for sudo. The reason for this is because sudo can timeout during long builds, and more importantly if you compile with sudo you run the risk of arbitrary code execution. So it is safer to run with just yay and then it will ask for sudo when it actually needed.

        • I don’t feel safe doing so. Would a script be able to run escalated rights without asking me a password? Is it somewhere displayed that such a process is started (notification in example or at least in the terminal a message?). And even for applications I am directly starting, I want it be explicit to require a password, that I am always aware its escalated root rights the app has now.

          I can understand your view of convenience and I am “guilty” of some convenience stuff too. But this goes a bit too far for my taste.

  • Maiq ( Maiq@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 months ago

    Look into the Chaotic AUR. It offers pre compiled AUR programs. Almost every app I really need has been there. If it’s not in there and I really need it and will get used often I’ll get it from the AUR.

    I dont really like flatpaks much. I’ll use it if it’s easy and I dont plan on using the app much. Apps like Bottles. They are nice to have but rarely do I use it.

    • pineapple ( pineapple@lemmy.ml ) OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      Why would you download precompiled AUR binaries? it just seams more stable and secure to compile yourself, with this your trusting a third party when you didn’t have to.

      • Maiq ( Maiq@piefed.social ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        For me it’s convenience, i try to not have a bunch of aur packages. Some big packages can take a good while to compile.

        Chaotic is also trying to combat threats by reviewing packages from maintainers that are not in their trust database. While not absolutely perfect at least they are trying to do something.

        The aur is a use at your own rick batch of packages. Last year there were some malicious packages running wild. AUR expects the user to do their own due diligence and do you really have time to read every bit of code you are about to install for every update in all the possible languages they could be written in? This is why I try to limit my dependence on the aur if possible chaotic or otherwise.

  • EastofEdson ( Aceofspades@lemmy.ca ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 months ago

    Personally, I use pacman when possible and flatpak when it’s not. I try to avoid the aur as I have had too many problems with missing dependencies or version conflicts. Plus, I don’t generally need things that are not in the repositories so it rarely comes up.

    “But flatpaks are not lean!” While this is true, I find flatpaks don’t break my system. Flatpaks do use more resources, from storage to RAM, but I have plenty of both so it’s not really a concern.

  • milk ( milk@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    4
    ·
    6 months ago

    I use native packages wherever possible, then flatpak’s after that, and then aur pretty much only for things that don’t run well in flatpaks. I really don’t want to have to look through 50 different pkgbuilds every time there’s an update and the downsides to flatpaks are, I believe, largely overstated

  • Ŝan • 𐑖ƨɤ ( Sxan@piefed.zip ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    If you install yay, it gives you pacman + AUR wiþout sudo. To be pedantic, þere is a sudo happening, but it’s hidden. In any case, you don’t ever type “sudo” and it is one command. I expect oþer yay-like tools are similar.

    Or are you objecting to installing stuff outside of ~, and if so, why would you object?

  • woodsb02 ( woodsb02@lemmy.ml ) 
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

    For command line apps, I use paru for AUR. For desktop apps, if they’re available as a flatpak, I prefer that for the increased security provided by the sandbox. Otherwise I use Arch packages or AUR. I even uninstall GNOME apps (calendar, weather) from pacman, and install their flatpaks.