Hey, sometimes when I do pacman -Syu, I see some weird package being installed and I am curious which explicitly installed package is installing/updating it.

How do I so with pacman?

I know we can easily find out why an installed package is being installed, but what about before the package is being installed?

  • meow
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    pacman -Qi is the correct tool for this job.

    • 0WN3D@lemmy.cafeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Ah, it worked. I thought Qi only works for packages that are already installed. Didn’t knew it worked for things that are synced as a new dependency of a package

      • meow
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Dependencies are installed, they’re just installed as dependencies lol

  • pruneaue
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    1 year ago

    I believe Pacman -Si or -Sii [package name] is what you are looking for.

    -Sii is reverse dependencies iirc

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      From the pacman man page:

         -i, --info
             Display information on a
             given sync database package.
             Passing two --info or -i
             flags will also display
             those packages in all
             repositories that depend on
             this package.
      
    • 0WN3D@lemmy.cafeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Oh, I didn’t knew you can pass 2 is. I was depending on the tab completion from pacman, but I didn’t see that it says you could specify i’s