utility to purge old ZFSBootMenu executables
- C 88.5%
- Makefile 11.5%
| .gitignore | initial commit | |
| defs.h | remove hardcoded license | |
| LICENSE.md | update license to BSD-3-Clause | |
| main.c | remove hardcoded license | |
| Makefile | improve Makefile, update README.md to match | |
| README.md | update license to BSD-3-Clause | |
| util.c | initial commit | |
| util.h | fix missing include statement, update Makefile | |
| zbm.c | initial commit | |
| zbm.h | initial commit | |
zkpurge
minimal C-lang utility to purge old ZFSBootMenu executables
inspired by Void's vkpurge(8)
Compiling
Clone the repo:
git clone https://github.com/plavpixel/zkpurge.git && cd zkpurge
Build:
make
Install:
sudo make install
Uninstall:
sudo make uninstall
Usage
# list available kernels
zkpurge -l
# remove a specific version
sudo zkpurge -r 3.1.0_1
# remove all except latest and pinned
sudo zkpurge -r all
Options
-l,--list: List available ZBM kernels.-r,--remove: Remove kernels (requires target).-v,--version: Show version and attribution.-h,--help: Show usage help.
Environment Overrides
ZBM_PATH: Override auto-detected directory.ZBM_PROTECT: Version string to keep during-r all.
License
BSD-3-Clause