# bfg mit Homebrew, MacPorts, scoop installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für bfg in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:bfg
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install bfg
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bfg
```

  Evidenz: MacPorts ports tree: java/bfg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/bfg
```

  Evidenz: Scoop official bucket manifest trees: bucket/bfg.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:bfg
- **Paketmanager:** Homebrew
- **Version:** 1.15.0
- **Quellzusammenfassung:** Remove large files or passwords from Git history like git-filter-branch
- **Homepage:** <https://rtyley.github.io/bfg-repo-cleaner/>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- bfg (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.15.0
## Projektgeschichte und Nutzung

BFG Repo-Cleaner is a Scala/JVM command-line tool for removing large files, passwords, credentials, and other unwanted blobs from Git history. Its official positioning is as a simpler and much faster alternative to git-filter-branch for cleansing bad data from repositories.

### Projektgeschichte

The official GitHub repository was created in December 2012. BFG's README and project site center on two core repository-cleaning jobs: stripping large blobs and replacing sensitive text across history.

Release history shows BFG maturing through the 2010s, including Git LFS support in v1.12.5 in 2015, Java 8 and Scala 2.12 support in v1.13.0 in 2018, Scala 2.13 in v1.14.0 in 2021, and v1.15.0 in January 2025.

### Adoptionsgeschichte

BFG became widely known because git-filter-branch was powerful but slow and difficult to use for common cleanup jobs. BFG narrowed the problem to the operations teams most often needed after accidentally committing giant artifacts or secrets, then packaged that workflow as a standalone executable.

The input records Homebrew, MacPorts, and Scoop packaging, matching BFG's cross-platform appeal: it is a Java-based tool that can be used from macOS, Linux, or Windows when a Git repository needs emergency cleanup.

### Wie es verwendet wird

Typical usage is on a mirror clone or bare repository, with commands such as stripping blobs above a size threshold or replacing text listed in a file. After BFG rewrites the repository objects, users still need the normal Git cleanup and force-push workflow expected after history rewriting.

Because it rewrites repository history, BFG is used deliberately: it is most valuable when a repository has already leaked bulky files or secrets and the team needs a repeatable cleanup tool rather than manual filter-branch scripting.

### Warum Paket-Nerds sich dafür interessieren

BFG is package-nerd significant because it turned one of Git administration's ugliest chores into a memorable, packaged CLI. Before git-filter-repo became the modern upstream-recommended tool, BFG was the package many developers reached for when Git history got polluted.

Its design is a good example of a focused package beating a built-in general-purpose tool for a painful workflow: fewer knobs, better defaults for common cleanup cases, and performance claims strong enough to become part of the project's identity.

### Zeitleiste

- 2012: Official repository created in December.
- 2015: v1.12.5 added Git LFS support.
- 2018: v1.13.0 moved to Scala 2.12 and Java 8.
- 2021: v1.14.0 updated to Scala 2.13.
- 2025: v1.15.0 released in January.

### Related projects

- Related projects include git-filter-branch, git-filter-repo, git lfs migrate, and secret-scanning tools such as Gitleaks or TruffleHog that may detect the problem before BFG is needed.

### Quellen

- <https://api.github.com/repos/rtyley/bfg-repo-cleaner>
- <https://api.github.com/repos/rtyley/bfg-repo-cleaner/releases>
- <https://raw.githubusercontent.com/rtyley/bfg-repo-cleaner/master/README.md>
- <https://rtyley.github.io/bfg-repo-cleaner/>
- source_facts.package-manager


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Andere Paketmanager-Einträge

- MacPorts - bfg: normalized package name match | MacPorts ports tree: java/bfg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/bfg: normalized package name match | Scoop official bucket manifest trees: bucket/bfg.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/bfg.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bfg.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
