• CubitOom@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Good question, I guess I might be using the wrong word when i say “orphan” because I see the arch wiki uses that term differently

      Orphans are packages that were installed as a dependency and are no longer required by any package.

      https://wiki.archlinux.org/title/Pacman/Tips_and_tricks

      You can remove these manually or if using an aur helper like yay there are flags/settings you can use to delete them after the desired package was installed.

      However what I was talking about aur packages that are unmaintained or do not have a maintainer anymore.

      I’m researching more at the moment.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        shit, I had 150 orphaned packages

        pacman -Qdtq | pacman -Rns -

        I made an alias for this, but IMO this cleanup should be automatic. The user didn’t install it themselves after all.

        • arschflugkoerper@feddit.org
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          This can be prevented by uninstalling with -Rs

          Just removing them without user intervention could cause unexpected behavior.

        • CubitOom@infosec.pub
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          I don’t trust that everything that outputs from pacman -Qdtq should be deleted. Like I want to keep vlc.

          • Eager Eagle@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            I think if you do pacman -S vlc it won’t be orphan anymore though. I removed everything, if I miss something I’ll install it again.

            • CubitOom@infosec.pub
              link
              fedilink
              English
              arrow-up
              0
              ·
              2 months ago

              A simple install kept it orphaned. Instead I needed to run sudo pacman -D --asexplicit vlc