• Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    23 days 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.

    • CubitOom@infosec.pub
      link
      fedilink
      English
      arrow-up
      2
      ·
      23 days 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
        3
        ·
        23 days 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
          7
          ·
          23 days ago

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