# 使用 Homebrew, apt, MacPorts, Nix 安装 ent

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

## 安装

```sh
sudo av install brew:ent
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ent
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ent
```

  证据: MacPorts ports tree: math/ent/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install ent
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ent
```

  证据: nixpkgs package indexes: pkgs/by-name/en/ent/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ent
- **软件包管理器:** Homebrew
- **版本:** 1.0
- **来源摘要:** Pseudorandom number sequence test program
- **主页:** <https://www.fourmilab.ch/random/>
- **仓库:** <https://github.com/psm14/ent>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ent (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ent is John Walker's command-line program for applying statistical tests to byte streams, mainly to inspect pseudorandom number generators, compression output, encrypted data, and other files where information density matters.

### 项目历史

The official Fourmilab page describes ent as a pseudorandom number sequence test program that reads a file or standard input and reports entropy, optimum compression estimate, chi-square distribution, arithmetic mean, Monte Carlo value for pi, and serial correlation.

The page frames the tool around practical comparisons of generated data, including examples contrasting compressed files, Unix `rand()` output, an improved generator, and radioactive-decay random data from Fourmilab's HotBits service.

### 采用历史

ent is a small but widely repackaged scientific CLI. The input metadata lists it in Homebrew, Debian, Ubuntu, MacPorts, and Nix, reflecting its utility as a compact randomness and entropy smoke test in Unix-style workflows.

### 使用方式

Users run `ent` on a file or pipe data to standard input, optionally using flags for byte/bit-oriented output, counts, folding, terse CSV-style output, or stdin handling. The program is commonly used to sanity-check random generators, compressed data, encrypted data, and test fixtures.

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

ent is package-nerd friendly because it is tiny, public-domain in Homebrew metadata, scriptable, and easy to compare across systems. It gives quick statistical signals without requiring a larger cryptography or statistics suite.

### 时间线

- 1990s-2000s: Fourmilab page documents ent as a standalone pseudorandom sequence test utility.
- 2010s: Third-party GitHub mirror created for source availability, while Fourmilab remains the official documentation source.
- 2020s: Package metadata shows continuing availability in Homebrew and several Unix package collections.

### Related projects

- The official page relates ent to Fourmilab HotBits, Unix `rand()`, Park-Miller style pseudorandom generators, and statistical references such as Knuth and Hamming.

### 来源

- <https://www.fourmilab.ch/random>
- <https://formulae.brew.sh/formula/ent>
- <https://github.com/psm14/ent>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - ent - 1.2debian-3: normalized package name match | Debian stable package indexes: ent from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | pseudorandom number sequence test program | http://www.fourmilab.ch/random/
- Nix - ent: normalized package name match | nixpkgs package indexes: pkgs/by-name/en/ent/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ent - 1.2debian-3: normalized package name match | Ubuntu 24.04 LTS package indexes: ent from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | pseudorandom number sequence test program | http://www.fourmilab.ch/random/
- MacPorts - ent: normalized package name match | MacPorts ports tree: math/ent/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/ent.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ent.yml)


## 来源

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