# 使用 Homebrew, apk, apt, dnf, Nix 安装 diceware

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

## 安装

```sh
sudo av install brew:diceware
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diceware
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add diceware
```

  证据: Alpine Linux edge package indexes: diceware from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install diceware
```

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

- dnf (92%):

```sh
sudo dnf install diceware
```

  证据: Fedora Rawhide package metadata: diceware from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#diceware
```

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

## 软件包事实

- **软件包键:** brew:diceware
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/diceware>
- **版本:** 1.0.1
- **来源摘要:** Passphrases to remember
- **主页:** <https://github.com/ulif/diceware>
- **仓库:** <https://github.com/ulif/diceware>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://files.pythonhosted.org/packages/8b/ba/db6c087f044f6a753a85c0d8b25848122018ced2130061298c0c08940a54/diceware-1.0.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- diceware (cli)
- diceware (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.1
- 本地数据: OK
- 上游仓库: https://github.com/ulif/diceware
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

diceware is a Python command-line passphrase generator that follows Arnold G. Reinhold's Diceware proposal by selecting random words from wordlists.

### 项目历史

The GitHub repository was created in 2015, and the official changelog starts with version 0.1 on 2015-02-18. The docs show a steady command-line password-tool history: new wordlists, real-dice randomness, Python-version support, manpage work, XDG config support, and a 1.0 project-layout overhaul in 2024.

### 采用历史

The package sits in the Unix security-tool tradition: small CLI, auditable inputs, standard package-manager names, and passphrases that can be generated either from the operating system's randomness or from physical dice.

### 使用方式

Users run `diceware` to emit memorable multiword passphrases, choose the number of words, set delimiters, select randomness sources, and pick wordlists. The docs note the EFF wordlist as the default and describe custom, numbered, and PGP-signed wordlists.

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

diceware is notable because it packages a human-centered security practice as a reproducible CLI. It is small enough for distro packaging but opinionated enough to encode defaults around wordlists, entropy, and configuration locations.

### 时间线

- 2015: Repository created and version 0.1 released.
- 2016: EFF wordlist support added.
- 2022: Version 0.10 added syntactically valid phrase support with adjective and noun wordlists.
- 2024: Version 1.0 added XDG config support and modernized the project layout.

### Related projects

- The docs credit Arnold G. Reinhold's Diceware proposal and include wordlists from EFF and other contributors.

### 来源

- <https://github.com/ulif/diceware>
- <https://raw.githubusercontent.com/ulif/diceware/master/README.rst>
- <https://diceware.readthedocs.io/en/latest/>
- <https://diceware.readthedocs.io/en/latest/readme.html>
- <https://diceware.readthedocs.io/en/latest/config.html>
- <https://diceware.readthedocs.io/en/latest/changes.html>
- <https://api.github.com/repos/ulif/diceware>


## 安全说明

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: ~/.diceware.ini, $XDG_CONFIG_HOME/diceware/diceware.ini, ~/.config/diceware/diceware.ini, /etc/xdg/diceware/diceware.ini
## 源数据库详情

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

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

- Debian apt - diceware - 1.0.1-1: normalized package name match | Debian stable package indexes: diceware from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Create memorizable passphrases from wordlists and various sources of randomness | https://github.com/ulif/diceware
- Debian apt - diceware-doc - 1.0.1-1: normalized package name match | Debian stable package indexes: diceware-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Create memorizable passphrases from wordlists and various sources of randomness | https://github.com/ulif/diceware
- Nix - diceware: normalized package name match | nixpkgs package indexes: diceware from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - diceware - 0.10-2: normalized package name match | Ubuntu 24.04 LTS package indexes: diceware from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Create memorizable passphrases from wordlists and various sources of randomness | https://github.com/ulif/diceware
- Ubuntu apt - diceware-doc - 0.10-2: normalized package name match | Ubuntu 24.04 LTS package indexes: diceware-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Create memorizable passphrases from wordlists and various sources of randomness | https://github.com/ulif/diceware
- apk - diceware - 1.0.1-r1: normalized package name match | Alpine Linux edge package indexes: diceware from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Passphrases you will remember | https://github.com/ulif/diceware
- apk - diceware-pyc - 1.0.1-r1: normalized package name match | Alpine Linux edge package indexes: diceware-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for diceware | https://github.com/ulif/diceware
- dnf - diceware - 1.0.1-8.fc45: normalized package name match | Fedora Rawhide package metadata: diceware from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Create passphrases which one can remember | https://pypi.python.org/pypi/diceware
- dnf - diceware-doc - 1.0.1-8.fc45: normalized package name match | Fedora Rawhide package metadata: diceware-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for Diceware | https://pypi.python.org/pypi/diceware


## 相关链接

- [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.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [passwdqc](https://pkg.so/zh-hans/brew/passwdqc/) - Shares pkgdb curated category or tags: cli, passphrases, passwords, security.
- [name-that-hash](https://pkg.so/zh-hans/brew/name-that-hash/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [checkpwn](https://pkg.so/zh-hans/brew/checkpwn/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [pwgen](https://pkg.so/zh-hans/brew/pwgen/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [crunch](https://pkg.so/zh-hans/brew/crunch/) - Shares pkgdb curated category or tags: cli, passwords, security, wordlists.
- [cracklib](https://pkg.so/zh-hans/brew/cracklib/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [search-that-hash](https://pkg.so/zh-hans/brew/search-that-hash/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [sf-pwgen](https://pkg.so/zh-hans/brew/sf-pwgen/) - Shares pkgdb curated category or tags: cli, passwords, security.
- [apkleaks](https://pkg.so/zh-hans/brew/apkleaks/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, security.

## Combined YAML source

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