| 1 |
# BleachBit |
| 2 |
|
| 3 |
BleachBit cleans files to free disk space and to maintain privacy. |
| 4 |
|
| 5 |
## Running from source |
| 6 |
|
| 7 |
To run BleachBit without installation, first install the system dependencies, |
| 8 |
then build the translations and run it: |
| 9 |
|
| 10 |
```sh |
| 11 |
make install-deps # runtime deps (auto-detects Debian/Fedora/openSUSE/Arch) |
| 12 |
make -C po local # build translations |
| 13 |
python3 bleachbit.py |
| 14 |
``` |
| 15 |
|
| 16 |
Many Linux systems have the basic dependencies: you may skip installation, |
| 17 |
but in case of any issues, please check for missing dependencies. |
| 18 |
|
| 19 |
Then, review the preferences. |
| 20 |
|
| 21 |
Then, select some options, and click Preview. Review the files, toggle options accordingly, and click Delete. |
| 22 |
|
| 23 |
For information regarding the command line interface, run: |
| 24 |
|
| 25 |
```sh |
| 26 |
python3 bleachbit.py --help |
| 27 |
``` |
| 28 |
|
| 29 |
Read more about [running from source](https://docs.bleachbit.org/dev/running-from-source-code.html). |
| 30 |
|
| 31 |
## Links |
| 32 |
|
| 33 |
* [BleachBit home page](https://www.bleachbit.org) |
| 34 |
* [Support](https://www.bleachbit.org/help) |
| 35 |
* [Documentation](https://docs.bleachbit.org) |
| 36 |
|
| 37 |
## Localization |
| 38 |
|
| 39 |
Read [translation documentation](https://www.bleachbit.org/contribute/translate) or translate now in [Weblate](https://hosted.weblate.org/projects/bleachbit/), a web-based translation platform. |
| 40 |
|
| 41 |
<a href="https://hosted.weblate.org/engage/bleachbit/"> |
| 42 |
<img src="https://hosted.weblate.org/widgets/bleachbit/-/multi-auto.svg" alt="Translation status"/> |
| 43 |
</a> |
| 44 |
|
| 45 |
## Licenses |
| 46 |
|
| 47 |
BleachBit itself, including source code and cleaner definitions, is licensed under the [GNU General Public License version 3](COPYING), or at your option, any later version. |
| 48 |
|
| 49 |
markovify is licensed under the [MIT License](https://github.com/jsvine/markovify/blob/master/LICENSE.txt). |
| 50 |
|
| 51 |
## Development |
| 52 |
|
| 53 |
To develop, run the test suite, or build packages, install the |
| 54 |
extra build/test/lint/packaging tools too: |
| 55 |
|
| 56 |
```sh |
| 57 |
make install-deps-dev |
| 58 |
``` |
| 59 |
|
| 60 |
Common commands include: |
| 61 |
|
| 62 |
```sh |
| 63 |
make tests # run tests |
| 64 |
make lint # check .py and .sh files for issues |
| 65 |
make pretty # format .py and .xml files |
| 66 |
``` |
| 67 |
|
| 68 |
More resources: |
| 69 |
* [](https://github.com/bleachbit/bleachbit/actions/workflows/build_and_test.yaml) |
| 70 |
* [](https://github.com/bleachbit/bleachbit/actions/workflows/test_macos.yaml) |
| 71 |
* [CleanerML Repository](https://github.com/bleachbit/cleanerml) |
| 72 |
* [BleachBit Miscellaneous Repository](https://github.com/bleachbit/bleachbit-misc) |
| 73 |
* [Winapp2.ini Repository](https://github.com/bleachbit/winapp2.ini) |
| 74 |
|
| 75 |
### Docker-based Linux builds |
| 76 |
|
| 77 |
The `docker/build.sh` script sets up a container, runs `make tests`, |
| 78 |
and builds packages for a selected distribution. Usage: |
| 79 |
|
| 80 |
```sh |
| 81 |
./docker/build.sh <distro> # distro is one of {debian, fedora, opensuse} |
| 82 |
``` |
| 83 |
|
| 84 |
Artifacts are copied to `./docker-artifacts/<distro>` on the host. |