Skip to content
Easily remove packages on which no other packages depend
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.markdown
distro.py
pkg_clearleaves

README.markdown

This project is considered stable

For FreeBSD there's a tool called pkg_cutleaves, which is a very handy tool to quickly remove unneeded packages; you get a list of all packages that can be removed without breaking other packages in EDITOR and you remove the lines of packages you want removed in your editor. Save, quit, confirm, and the packages will be removed.

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!

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

It currently only works for Arch Linux (pacman), but its design should make it easier to add other platforms as well. In fact, rpm, dpkg, and FreeBSD were supported in earlier versions, but I added them with little testing four years ago, and wasn't confident they're correct, so I commented them out again.

Feel free to test, develop, and open a PR!

You can’t perform that action at this time.