For FreeBSD there’s a tool called pkg_cutleaves, which is a very handy tool to quickly remove unneeded packages.

None of the Linux systems that I’ve worked with (Arch, Ubuntu, CentOS) come with such a tool, nor have I been able to find one that works as well as pkg_cutleaves.

So here it is! It’s cross-platform, and should work on:

This only implements the visual mode, and not the interactive mode, as I find that to be much more useful. Note that the flags are not compatible with pkg_cutleaves.

Copyright © 2010-2017 Martin Tournoij <martin@arp242.net>
This document is licensed under a cc-by 4.0 license.