actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
853 stars 86 forks source link

Do not delete build dependencies #370

Closed JulioJu closed 4 years ago

JulioJu commented 5 years ago

Hi !

Is it possible to no delete package needed for build dependencies ?

In Yaourt, packages dependencies for build are not deleted

Thanks in advance !

actionless commented 5 years ago

there is no such option, but it shouldn't be complicated to implement such flag+config option

zynexiz commented 4 years ago

Personally, that's what I really like about pikaur. I don't like a cluttered system with unused packages laying around that's rarely used. If of some reason you want some of the packages anyway, install then manually. Pikaur don't remove them if they are installed outside pikaur.

stertingen commented 4 years ago

When installing ros-melodic-desktop(https://aur.archlinux.org/packages/ros-melodic-desktop/), this is a pain. The build dependencies are installed and removed per package. (Which also have build dependencies from the AUR!) So pikaur spends a lot of time installing and removing build dependencies instead of building packages.

A nice option would be to resolve build dependencies for every package at the very beginning, install them all, and after every package is built, remove them all.

JulioJu commented 4 years ago

@stertingen or not remove build dependencies !

It could be cool to let the user the choice to remove or not build dependencies at the end of the install process.

Note:

Running

pacman -Qdt

will get you a list of packages that were installed as dependencies but are no longer needed > by any package. These can be safely uninstalled. https://bbs.archlinux.org/viewtopic.php?id=89140

It could be cool that Pikaur run optionally this command at the end of the installation !

actionless commented 4 years ago

ok, since user demand on that have raised over the time, i'll indeed add that option soon