# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nutcracker>
- **版本:** 0.5.0
- **来源摘要:** Proxy for memcached and redis
- **主页:** <https://github.com/twitter/twemproxy>
- **仓库:** <https://github.com/twitter/twemproxy>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/twitter/twemproxy/archive/refs/tags/0.5.0.tar.gz>
- **最后更新:** 2026-06-19T12:32:40-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 依赖

- libyaml

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.0
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://github.com/twitter/twemproxy
- 检测到的最新版本: 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
## 源数据库详情

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

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [sing-box](https://pkg.so/zh-hans/brew/sing-box/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [proxychains-ng](https://pkg.so/zh-hans/brew/proxychains-ng/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [envoy](https://pkg.so/zh-hans/brew/envoy/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [mihomo](https://pkg.so/zh-hans/brew/mihomo/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [libproxy](https://pkg.so/zh-hans/brew/libproxy/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [privoxy](https://pkg.so/zh-hans/brew/privoxy/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [shadowsocks-libev](https://pkg.so/zh-hans/brew/shadowsocks-libev/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [shadowsocks-rust](https://pkg.so/zh-hans/brew/shadowsocks-rust/) - Shares pkgdb curated category or tags: cli, networking, proxy.
- [archgw](https://pkg.so/zh-hans/brew/archgw/) - Local package facts share a topical domain. Shared terms: cli, libyaml, networking, proxy.
- [connect](https://pkg.so/zh-hans/brew/connect/) - Local package facts share a topical domain. Shared terms: cli, networking, proxy.
- [ctrld](https://pkg.so/zh-hans/brew/ctrld/) - Local package facts share a topical domain. Shared terms: cli, networking, proxy.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
