manjaro / pamac

This repo has been archived. Our code is now hosted at
https://gitlab.manjaro.org/
GNU General Public License v3.0
223 stars 38 forks source link

How does Pamac handle unused dependencies? #434

Closed Madis0 closed 6 years ago

Madis0 commented 6 years ago

Quoting a post about Arch:

  • Some packages do not need some of their dependencies after the install (i.e. only needed for building)
  • When I fail to install a package from AUR, some of the dependencies remain installed
  • When I remove an AUR package, some of the dependencies remain installed

I'm aware of an option to fix the third problem, but I'm wondering about the first two.

guinux commented 6 years ago

The packages related to the first two point are "Installed as a dependency for another package" so you can find them in the orphans view.

Madis0 commented 6 years ago

I browsed it a little and now I see how it works. However, why would it not automatically remove the dependencies it no longer needs after installing a package? Is it a compatibility concern?

guinux commented 6 years ago

I prefer to let them installed as it's totally harmless and they can be useful when updating the package.

Madis0 commented 6 years ago

Right, I forgot that AUR always needs compiling, even when updating. That answered my questions well, thank you!