Back
gh

cosmix/broom: Broom is a Golang program that helps linux desktop users free disk space easily.

Broom is a Golang program that helps linux desktop users free disk space easily. - cosmix/broom

by cosmix github.com 521 words
View original

🧹 Broom - System Cleanup Utility

Broom is a Go-based system cleanup utility for GNU/Linux-based operating systems that helps you free up disk space by removing unnecessary files and cleaning up various system components. It is work in progress, and has been tested only on Debian/Ubuntu/Pop!_OS etc., but should work reasonably well on other Linux distributions.

Features

Broom asks you for confirmation whenever it’s about to perform a potentially destructive operation. You can choose to include or exclude specific ‘cleaners’ based on your requirements. At the end of a brooming session you will be presented with a summary of the cleanup operations performed, and their characteristics.

Usage

sudo broom [options]

Options:

Example: Execute all cleaners except docker and snap

sudo broom -x docker,snap

Example: Execute only the cache and kernels cleaner

sudo broom -i kernels,cache

Note that the -x and -i options are mutually exclusive. And -all is mutually exclusive with all other options.

Building

To build the executable, use the provided Makefile:

make

This will create the broom executable in the current directory.

To install the executable to /usr/local/bin/:

sudo make install

Note

Important: This program requires root privileges to perform most cleanup operations. Always use with caution and consider backing up important data before running extensive cleanup operations.