# Install cassandra with Homebrew, MacPorts, Nix, pacman

Eventually consistent, distributed key-value store. Version 5.0.8 via Homebrew; verified 2026-06-06.

## Install

```sh
sudo av install brew:cassandra
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cassandra
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cassandra
```

  Evidence: MacPorts ports tree: databases/cassandra/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cassandra
```

  Evidence: nixpkgs package indexes: cassandra from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S perl-geoip
```

  Evidence: Arch Linux sync databases: perl-geoip from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:cassandra
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cassandra>
- **Version:** 5.0.8
- **Source summary:** Eventually consistent, distributed key-value store
- **Homepage:** <https://cassandra.apache.org>
- **Repository:** <https://gitbox.apache.org/repos/asf/cassandra.git>
- **Upstream docs:** <https://cassandra.apache.org/doc/latest>
- **License:** Apache-2.0
- **Source archive:** <https://www.apache.org/dyn/closer.lua?path=cassandra/5.0.8/apache-cassandra-5.0.8-bin.tar.gz>
- **Last updated:** 2026-06-06T11:29:12Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- auditlogviewer (cli)
- cassandra (cli)
- cassandra-stress (cli)
- compaction-stress (cli)
- cqlsh (cli)
- cqlsh.py (cli)
- debug-cql (cli)
- fqltool (cli)
- generatetokens (cli)
- hash_password (cli)
- jmxtool (cli)
- nodetool (cli)
- sstabledump (cli)
- sstableexpiredblockers (cli)
- sstablelevelreset (cli)
- sstableloader (cli)
- sstablemetadata (cli)
- sstableofflinerelevel (cli)
- sstablepartitions (cli)
- sstablerepairedset (cli)
- sstablescrub (cli)
- sstablesplit (cli)
- sstableupgrade (cli)
- sstableutil (cli)
- sstableverify (cli)
- auditlogviewer (alias)
- cassandra (alias)
- cassandra-stress (alias)
- compaction-stress (alias)
- cqlsh (alias)
- cqlsh.py (alias)
- debug-cql (alias)
- fqltool (alias)
- generatetokens (alias)
- hash_password (alias)
- jmxtool (alias)
- nodetool (alias)
- sstabledump (alias)
- sstableexpiredblockers (alias)
- sstablelevelreset (alias)
- sstableloader (alias)
- sstablemetadata (alias)
- sstableofflinerelevel (alias)
- sstablepartitions (alias)
- sstablerepairedset (alias)
- sstablescrub (alias)
- sstablesplit (alias)
- sstableupgrade (alias)
- sstableutil (alias)
- sstableverify (alias)

## Dependencies

- libev
- openjdk@17
- python@3.11

## 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: 5.0.8
- Package-manager updated: 2026-06-06
- Local data: ok
- Upstream repository: https://cassandra.apache.org
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Apache Cassandra is an open-source distributed NoSQL database built for high availability, linear scalability, and fault tolerance on commodity hardware or cloud infrastructure. It is one of the most recognizable databases in the package-manager catalog because a single package ships the server, cqlsh, nodetool, and a large set of SSTable and operations tools.

### Project history

The Apache Cassandra GitHub repository dates to 2009. The official README describes Cassandra as a highly scalable partitioned row store, with partitioning used to distribute data across machines and CQL as a SQL-like query language.

Cassandra's release history spans many major operational changes. Current NEWS and CHANGES files describe work such as transactional cluster metadata, guardrails, repair automation design work, table constraints, role/password policies, and extensive storage-engine and read-path performance improvements.

### Adoption history

The official project homepage says Cassandra is trusted by thousands of companies for scalability and high availability. Its case studies list very large deployments, including Apple running more than 75,000 nodes, Instagram beginning use in 2012, Netflix managing petabytes of data, and Uber running Cassandra as a service for millions of queries per second and petabytes of data.

Homebrew analytics show 3,989 stable installs in the last 365 days in the formula API, reflecting developer and local-test usage rather than production cluster deployment.

### How it is used

The package is used to run Cassandra nodes, start local clusters, interact through `cqlsh`, and administer clusters with tools such as `nodetool`, `sstabledump`, `sstableloader`, and related SSTable utilities. Official docs identify `cassandra.yaml` as the main configuration file and cqlsh as the command-line CQL shell shipped with every Cassandra package.

### Why package nerds care

For package maintainers, Cassandra is a heavy, multi-tool Java database package with config files, shell tools, Python cqlsh behavior, and fast-moving runtime requirements. It is a good test of how a package manager handles daemon-oriented software, Java compatibility, CLI shims, configuration defaults, and large upstream release artifacts.

### Timeline

- 2009: Apache Cassandra repository created.
- 2012: Instagram began using Cassandra according to the official case-study page.
- 2016: Bloomberg quote on the official homepage says its engineers turned to Cassandra that year.
- 2026: Homebrew formula packages Apache Cassandra 5.0.8.

### Related projects

- CQL and cqlsh are Cassandra's query language and interactive shell surface.
- Reaper for Apache Cassandra is a related operations tool focused on repair scheduling.
- Apache Lucene-derived and storage-engine tooling appears around Cassandra indexing and SSTable operations, but Cassandra ships its own administration tools.

### Sources

- <https://gitbox.apache.org/repos/asf/cassandra.git>
- <https://cassandra.apache.org>
- <https://cassandra.apache.org/_/case-studies.html>
- <https://cassandra.apache.org/doc/latest>
- <https://github.com/apache/cassandra>
- <https://github.com/apache/cassandra/blob/trunk/README.md>
- <https://github.com/apache/cassandra/blob/trunk/NEWS.txt>
- <https://github.com/apache/cassandra/blob/trunk/CHANGES.txt>
- <https://formulae.brew.sh/api/formula/cassandra.json>


## Security Notes

formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/cassandra/cassandra.yaml
- Unix: conf/cassandra.yaml

## Credential files

- Unix: ~/.cassandra/credentials
## Source Database Details

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

## Other Package-Manager Records

- Nix - cassandra: normalized package name match | nixpkgs package indexes: cassandra from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- pacman - perl-geoip - 1.51-4: normalized package name match | Arch Linux sync databases: perl-geoip from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | GeoIP Perl API | https://github.com/maxmind/geoip-api-perl
- MacPorts - cassandra: normalized package name match | MacPorts ports tree: databases/cassandra/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk@17](https://www.automicvault.com/pkg/brew/openjdk-17/) - Runtime dependency declared by Homebrew.
- [python@3.11](https://www.automicvault.com/pkg/brew/python-3-11/) - Runtime dependency declared by Homebrew.
- [ssdb](https://www.automicvault.com/pkg/brew/ssdb/) - Shares av.db curated category or tags: cli, data, database, databases, key-value.
- [hbase](https://www.automicvault.com/pkg/brew/hbase/) - Shares av.db curated category or tags: cli, data, database, databases, distributed-database.
- [neo4j](https://www.automicvault.com/pkg/brew/neo4j/) - Shares av.db curated category or tags: cli, data, database, databases, nosql.
- [apache-geode](https://www.automicvault.com/pkg/brew/apache-geode/) - Shares av.db curated category or tags: cli, data, database, databases.
- [cdb](https://www.automicvault.com/pkg/brew/cdb/) - Shares av.db curated category or tags: cli, data, database, databases.
- [check_postgres](https://www.automicvault.com/pkg/brew/check-postgres/) - Shares av.db curated category or tags: cli, data, database, databases.
- [cql](https://www.automicvault.com/pkg/brew/cql/) - Shares av.db curated category or tags: cli, data, database, databases.
- [fourstore](https://www.automicvault.com/pkg/brew/fourstore/) - Shares av.db curated category or tags: cli, data, database, databases.
- [hadoop](https://www.automicvault.com/pkg/brew/hadoop/) - Local package facts share a topical domain. Shared terms: cli, data, distributed, openjdk, openjdk-17.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
