# 使用 Homebrew, MacPorts, Nix, pacman 安装 cassandra

查看 cassandra 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cassandra
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cassandra
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:cassandra
- **软件包管理器:** Homebrew
- **版本:** 5.0.8
- **来源摘要:** Eventually consistent, distributed key-value store
- **主页:** <https://cassandra.apache.org>
- **最后更新:** 2026-07-10T22:32:06Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.0.8
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- 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
## 其他软件包管理器记录

- 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


## Combined YAML source

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


## 来源

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