# Install carrot2 with Homebrew

Search results clustering engine. Version 4.8.6 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:carrot2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install carrot2
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:carrot2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/carrot2>
- **Version:** 4.8.6
- **Source summary:** Search results clustering engine
- **Homepage:** <https://search.carrot2.org/>
- **Repository:** <https://github.com/carrot2/carrot2>
- **Upstream docs:** <https://carrot2.github.io/release/latest>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/carrot2/carrot2.git>
- **Last updated:** 2026-06-22T14:02:59-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- carrot2 (cli)
- carrot2 (alias)

## Dependencies

- openjdk

## Build dependencies

- gradle
- node@22
- yarn

## Install behavior

- Post-install hook: not defined
- Service: declared
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.8.6
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/carrot2/carrot2
- info: No cached GitHub release or tag data was available.
## Project history and usage

Carrot2 is a Java text-clustering library and distribution. Its README says it discovers groups of related documents and labels them with short key terms or phrases, commonly from search result titles and snippets.

### Project history

The public GitHub repository was created in 2011 under the carrot2 organization. Official documentation for the latest release is published at carrot2.github.io, and the current latest-docs redirect points to the 4.8.6 documentation tree.

### Adoption history

Carrot2 is primarily a library and distribution rather than a single-purpose CLI. The README documents binary releases on GitHub, a bundled HTTP/JSON Document Clustering Server for non-Java integration, and integration paths through Apache Solr and Elasticsearch plugins.

### How it is used

Developers use Carrot2 to cluster text or search results, either through Java APIs, release-bundled API documentation, the DCS HTTP/JSON service, or search-platform integrations. The Homebrew package exposes a carrot2 executable for the packaged distribution.

### Why package nerds care

Carrot2 is interesting in package-manager history because it packages a research-flavored information-retrieval component as a usable distribution: a Java library, local server, documentation bundle, and integrations for search stacks.

### Timeline

- 2011: Public GitHub repository created.
- 2020s: Latest-release documentation is served from carrot2.github.io.
- 2020s: README documents GitHub binary releases and the DCS HTTP/JSON service.

### Related projects

- The README names Apache Solr and Elasticsearch integrations.
- The distribution includes the DCS service for integration from non-Java languages.

### Sources

- <https://api.github.com/repos/carrot2/carrot2>
- <https://github.com/carrot2/carrot2>
- <https://search.carrot2.org/>
- <https://github.com/carrot2/carrot2/wiki>
- <https://carrot2.github.io/release/latest>
- <https://formulae.brew.sh/api/formula/carrot2.json>


## Security Notes

formula declares a Homebrew service. infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service
- infrastructure mutation or orchestration signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** carrot2
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [gradle](https://www.automicvault.com/pkg/brew/gradle/) - Build dependency declared by Homebrew.
- [yarn](https://www.automicvault.com/pkg/brew/yarn/) - Build dependency declared by Homebrew.
- [meilisearch](https://www.automicvault.com/pkg/brew/meilisearch/) - Shares av.db curated category or tags: cli, data, search.
- [opensearch-dashboards](https://www.automicvault.com/pkg/brew/opensearch-dashboards/) - Shares av.db curated category or tags: cli, data, search.
- [pgroonga](https://www.automicvault.com/pkg/brew/pgroonga/) - Shares av.db curated category or tags: cli, data, search.
- [solr](https://www.automicvault.com/pkg/brew/solr/) - Shares av.db curated category or tags: cli, data, search.
- [sonic](https://www.automicvault.com/pkg/brew/sonic/) - Shares av.db curated category or tags: cli, data, search.
- [vespa-cli](https://www.automicvault.com/pkg/brew/vespa-cli/) - Shares av.db curated category or tags: cli, data, search.
- [groonga](https://www.automicvault.com/pkg/brew/groonga/) - Shares av.db curated category or tags: cli, data, search.
- [hyperestraier](https://www.automicvault.com/pkg/brew/hyperestraier/) - Shares av.db curated category or tags: cli, data, search.
- [tika](https://www.automicvault.com/pkg/brew/tika/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, java, openjdk, text.

## Combined YAML source

View the package source record on GitHub. [combined/carrot2.yml](https://github.com/automic-vault/db/blob/main/combined/carrot2.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
