• vaionko@sopuli.xyz
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    Isn’t pacman -Syu redundant if you run yay -Syu afterwards? Also, just yay is the same as yay -Syu

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.

      • vaionko@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        I’m not sure about yay but paru installs them completely first too, before AUR stuff. It literally runs pacman -Syu

    • slowcakes@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      Yes but who cares, it works and that is all that matter.

      If you would see my dotfiles, you would see a lot of unnecessary shit, because I don’t write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.

      • daggermoon@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 days ago

        Yes but who cares, it works and that is all that matter.

        This has pretty much been my approach to everything I do lol.

    • MrMcGasion@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running yay -Syu will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.

      If you run pacman -Syu on its own the unnecessary dependencies will be removed and you won’t get the AUR versions, and then yay -Syu will only update things you actually want from AUR.