Tuesday, April 28, 2026

Re: Package pruning

On Tue, Apr 28, 2026 at 11:52:53AM +0200, Manuel Giraud wrote: > Theo Buehler <tb@theobuehler.org> writes: > > >> Say that I install a package just to test it and then I want to get rid > >> of it. It comes with a lot of direct/indirect dependencies that I'd > >> also like to remove. How can I do this easily? (Right now, I'm walking > >> the "pkg_info -t" output and remove dependencies one at a time :-/) > > > > You got your answer with pkg_delete -a, but don't miss out on pkg_add -a > > and -aa. > > Thanks, I see but what would be the use case for pkg_add -a or -aa? To install a package for testing or that I don't want to keep, I do # pkg_add -a $package_with_lots_of_deps Then I remove it and its deps with # pkg_delete -a And if I forgot to use -a, I mark it with -aa, so the next pkg_delete -a garbage collects it.

No comments:

Post a Comment