# 使用 Homebrew, apt 安装 nutcracker

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

## 安装

```sh
sudo av install brew:nutcracker
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nutcracker
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install nutcracker
```

  证据: Debian stable package indexes: nutcracker from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:nutcracker
- **软件包管理器:** Homebrew
- **版本:** 0.5.0
- **来源摘要:** Proxy for memcached and redis
- **主页:** <https://github.com/twitter/twemproxy>
- **仓库:** <https://github.com/twitter/twemproxy>
- **最后更新:** 2026-06-19T12:32:40-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nutcracker (别名)
- test_all (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Nutcracker is the Homebrew formula name for Twitter's twemproxy, a small C proxy for memcached and Redis protocols. Twitter's README describes it as built to reduce backend cache-server connection counts, with pipelining and sharding used to scale distributed cache architectures.

### 项目历史

The public changelog records a twemproxy 0.1.16 release on 2012-02-09, when the project was described as a fast, lightweight proxy for the memcached protocol. Redis support was visible to the Redis community by late 2012, when Salvatore Sanfilippo wrote about Twitter's proxy as a practical sharding layer before Redis Cluster was available.

### 采用历史

twemproxy's package-nerd role was strongest in the early Redis and memcached scaling era: it let teams keep client libraries simple while putting consistent hashing, server pools, node ejection, and low backend connection counts in a separate process. Its Homebrew formula still exists as `nutcracker`/`twemproxy`, but Homebrew analytics on 2026-07-01 showed only 25 installs over 365 days, so the package-manager footprint is now mostly maintenance and legacy operations rather than new mainstream adoption.

### 使用方式

Operators run the `nutcracker` daemon with a YAML configuration that defines one or more pools, listen addresses, hash/distribution choices, Redis mode, timeouts, and backend servers. Common production patterns are to run multiple proxy instances for availability and to decide explicitly whether failed backend ejection is acceptable for cache use or whether a fixed key-to-server map is required.

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

Nutcracker matters historically because it captures a pre-native-cluster moment in Redis/memcached operations: sharding was often pushed into clients or a lightweight proxy, and Homebrew/Debian/Ubuntu packaging made the proxy easy to install for local testing and operations scripts.

### 时间线

- 2012-02-09: twemproxy 0.1.16 appears in the project changelog as a lightweight memcached proxy release.
- 2012-12-18: Redis creator Salvatore Sanfilippo publishes a detailed note on twemproxy's Redis sharding behavior and operational tradeoffs.
- 2026-07-01: Homebrew lists `nutcracker` stable 0.5.0 revision 1, with `twemproxy` as an alias.

### Related projects

- Redis Cluster
- Redis Sentinel
- memcached

### 来源

- <https://antirez.com/news/44>
- <https://formulae.brew.sh/formula/nutcracker>
- <https://github.com/twitter/twemproxy>
- <https://github.com/twitter/twemproxy/blob/master/ChangeLog>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


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

- Unix: conf/nutcracker.yml
## 其他软件包管理器记录

- Debian apt - nutcracker - 0.5.0+dfsg-2+b1: normalized package name match | Debian stable package indexes: nutcracker from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Fast, light-weight proxy for memcached and Redis | https://github.com/twitter/twemproxy
- Ubuntu apt - nutcracker - 0.5.0+dfsg-2: normalized package name match | Ubuntu 24.04 LTS package indexes: nutcracker from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Fast, light-weight proxy for memcached and Redis | https://github.com/twitter/twemproxy


## Combined YAML source

View the package source record on GitHub. [combined/nutcracker.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nutcracker.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
