Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arp242/pkg_clearleaves
Easily remove packages on which no other packages depend
https://github.com/arp242/pkg_clearleaves
archlinux package-management
Last synced: about 1 month ago
JSON representation
Easily remove packages on which no other packages depend
- Host: GitHub
- URL: https://github.com/arp242/pkg_clearleaves
- Owner: arp242
- License: mit
- Created: 2016-10-26T18:42:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T06:11:36.000Z (over 3 years ago)
- Last Synced: 2024-08-05T08:10:08.152Z (3 months ago)
- Topics: archlinux, package-management
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
[![This project is considered stable](https://img.shields.io/badge/Status-stable-green.svg)](https://arp242.net/status/stable)
For FreeBSD there's a tool called [`pkg_cutleaves`][1], 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) and Void Linux (xbps), but its
design should make it easier to add other platforms as well. 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!
[1]: http://www.freshports.org/ports-mgmt/pkg_cutleaves/