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.

  • DefinitelyNotBirds@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    28 days ago

    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@lemmy.ml
      link
      fedilink
      arrow-up
      10
      ·
      28 days 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.

    • pineapple@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 days ago

      I haven’t actually installed an aur helper yet but when I end up needing one, I think I will go with paru.

  • thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    11
    ·
    28 days 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@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      28 days 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.

  • Ada@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    28 days 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

  • juipeltje@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    28 days ago

    You can choose between things like flatpak or aur packages, but you’re gonna have to use pacman either way, since your core packages are still managed by pacman even if you decide to install most things through flatpak. Just wanted to point that out in case you were thinking of not using it at all anymore, cause it’s definitely not good to have your system get extremely out of date overtime. Having said that, it’s a matter of preference. The aur has more packages available, but flatpak has verified packages available, so assuming you stick to those, it could be safer. It also offers things like sandboxing. When i was on arch i only used the aur. I usually go with whatever has the most packages available or whatever is most convenient.

    • OUwUO@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      26 days ago

      Upvoted for Topgrade. It’s honestly so good on any system that employs more than one ‘updatable microcosm’,

      • Random Dent@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        26 days ago

        It’s like magic too, because any new weird kind of package manager I add, it’s just picks it up and starts updating it. It can even update Windows apparently.

  • EastofEdson@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    28 days 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.

    • thingsiplay@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      27 days ago

      You mean you have a package manager for your system without a password? Why would anyone want that?

      Edit: For context. The part I was replying to was edited out.

      • starshipwinepineapple@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        27 days ago

        (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.

        • thingsiplay@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          27 days ago

          No, that is not what it was about. I know, don’t run sudo yay, but rather just yay and wait for password request. What it was is about a configuration to not ask password anymore, a passwordless package manger.

        • thingsiplay@lemmy.ml
          link
          fedilink
          arrow-up
          3
          ·
          28 days ago

          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.

            • thingsiplay@lemmy.ml
              link
              fedilink
              arrow-up
              2
              ·
              28 days ago

              Hey, I didn’t meant this to be removed or anything; was just sharing my personal opinion. Everyone can do whatever they want, as long as they are aware of consequences and get teached about it. I’m just a bit paranoid, that’s all.

  • milk@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    25 days 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

  • iglou@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    27 days ago

    My reason for using arch linux is to have as little bloat as possible. So, pacman. Yay sometimes for AUR stuff, but my need for it is rare.

  • mub@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    27 days ago

    pacman / yay

    I also like pacseek as it provides a simple tui for package search and getting info about packages.

  • AstroLightz@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    27 days ago

    pacman /w chaotic-aur.

    I don’t need the AUR directly, a GUI, or other managers. Just what came with my system + chaotic works just fine.

    edit: typo

  • SayCyberOnceMore@feddit.uk
    link
    fedilink
    English
    arrow-up
    3
    ·
    26 days ago

    when both are available it’s hard to decide.

    It’s easy to decide: AUR (only)

    Personally, I use pacman for as much as I can, then dip into yay for anything else.

  • woodsb02@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    27 days 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.

  • bad1080@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    28 days ago

    i used their version of discover (forgot the name) and found it has mostly everything i was looking for (surprisingly so)