# 使用 Homebrew, apt, MacPorts, Nix, pacman 安装 dopewars

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

## 安装

```sh
sudo av install brew:dopewars
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dopewars
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dopewars
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install dopewars
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dopewars
```

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

- pacman (92%):

```sh
sudo pacman -S dopewars
```

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

## 软件包事实

- **软件包键:** brew:dopewars
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dopewars>
- **版本:** 1.6.2
- **来源摘要:** Free rewrite of a game originally based on "Drug Wars"
- **主页:** <https://dopewars.sourceforge.io>
- **上游文档:** <https://dopewars.sourceforge.io>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/dopewars/dopewars/1.6.2/dopewars-1.6.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dopewars (cli)
- dopewars (别名)

## 依赖

- gettext
- glib

## 构建依赖

- pkgconf

## macOS 提供的库

- curl
- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.6.2
- 本地数据: OK
- 上游仓库: https://dopewars.sourceforge.io
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dopewars is a free software strategy game derived from the older Drug Wars/Dopewars family. The modern package includes a Unix-style text client, server support for multiplayer games, Windows builds, and optional graphical or SDL variants.

### 项目历史

The project FAQ says dopewars was originally developed on a RedHat Linux system and is loosely based on John E. Dell's 1980s Drug Wars, with closer influence from the MS-DOS Dopewars rewrite. The README describes version 1.6.2 as a game about making money in New York while managing debt and police risk.

The current GitHub repository was created in 2015, but the SourceForge site and FAQ preserve the older project identity and documentation. SourceForge file metadata shows 1.6.2 release artifacts published in June 2022, while GitHub metadata shows maintenance activity continuing into 2026.

### 采用历史

dopewars is long-lived in Unix packaging culture because it is small, text-capable, network-aware, and portable. It appears in Homebrew and several Unix-like distribution package sets, and the official site has historically distributed tarballs, RPMs, and Windows binaries.

### 使用方式

Users run `dopewars` for the standard multiplayer-capable game, `dopewars -a` for antique mode closer to the original, `dopewars -s` for a server, or `dopewars -c` for a computer player. Configuration is read from `/etc/dopewars` and `~/.dopewars` on Unix, with a Windows-friendly configuration filename documented in the README.

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

dopewars is package-nerd significant as a classic small game that survived across SourceForge, GitHub, Unix packages, RPMs, and Windows binaries. It is also a good specimen of old-school free software game packaging: curses, GLib, optional GUI pieces, config files, high-score files, client/server mode, and long compatibility windows.

### 时间线

- 1980s: John E. Dell's Drug Wars provides the original game lineage, according to the dopewars FAQ.
- 1990s/2000s: dopewars develops as a portable Unix and Windows free software rewrite hosted around SourceForge.
- 2015: The current GitHub repository is created.
- 2022: SourceForge publishes dopewars 1.6.2 artifacts.
- 2026: GitHub repository metadata shows recent maintenance activity.

### Related projects

- Related projects include the original Drug Wars, MS-DOS Dopewars, Dopewars 2000, curses/ncurses, GLib, curl, GTK, SDL, SourceForge distribution, and multiplayer metaserver tooling.

### 来源

- <https://github.com/benmwebb/dopewars#readme>
- <https://dopewars.sourceforge.io/faq.html>
- <https://sourceforge.net/projects/dopewars/rss?path=/>
- <https://api.github.com/repos/benmwebb/dopewars>
- <https://formulae.brew.sh/formula/dopewars>


## 安全说明

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: /etc/dopewars, ~/.dopewars
- Windows: %LOCALAPPDATA%\dopewars\dopewars-config.txt
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dopewars
- **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 - dopewars - 1.6.2-1+b1: normalized package name match | Debian stable package indexes: dopewars from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | drug-dealing game set in streets of New York City | http://dopewars.sourceforge.net
- Debian apt - dopewars-data - 1.6.2-1: normalized package name match | Debian stable package indexes: dopewars-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | drug-dealing game set in streets of New York City - data files | http://dopewars.sourceforge.net
- Nix - dopewars: normalized package name match | nixpkgs package indexes: pkgs/by-name/do/dopewars/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dopewars - 1.6.2-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: dopewars from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | drug-dealing game set in streets of New York City | http://dopewars.sourceforge.net
- Ubuntu apt - dopewars-data - 1.6.2-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: dopewars-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | drug-dealing game set in streets of New York City - data files | http://dopewars.sourceforge.net
- pacman - dopewars - 1.6.2-4: normalized package name match | Arch Linux sync databases: dopewars from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Turn based strategy game based on "Drug Wars" from 1984 | https://dopewars.sourceforge.io
- MacPorts - dopewars: normalized package name match | MacPorts ports tree: games/dopewars/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Scientific computing packages](https://pkg.so/zh-hans/scientific-computing-tools/) - Matched scientific computing metadata.
- [Game and emulation packages](https://pkg.so/zh-hans/game-emulation-tools/) - Matched game or emulation metadata.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [pioneer](https://pkg.so/zh-hans/brew/pioneer/) - Shares pkgdb curated category or tags: cli, game, games, simulation.
- [simutrans](https://pkg.so/zh-hans/brew/simutrans/) - Shares pkgdb curated category or tags: cli, game, games, simulation.
- [robotfindskitten](https://pkg.so/zh-hans/brew/robotfindskitten/) - Shares pkgdb curated category or tags: cli, game, games, simulation.
- [librcsc](https://pkg.so/zh-hans/brew/librcsc/) - Shares pkgdb curated category or tags: cli, games, simulation.
- [freeciv](https://pkg.so/zh-hans/brew/freeciv/) - Shares pkgdb curated category or tags: cli, game, games, strategy.
- [unciv](https://pkg.so/zh-hans/brew/unciv/) - Shares pkgdb curated category or tags: cli, game, games, strategy.
- [widelands](https://pkg.so/zh-hans/brew/widelands/) - Shares pkgdb curated category or tags: cli, game, games, multiplayer.
- [trader](https://pkg.so/zh-hans/brew/trader/) - Shares pkgdb curated category or tags: cli, game, games, simulation.
- [pioneers](https://pkg.so/zh-hans/brew/pioneers/) - Local package facts share a topical domain. Shared terms: based, cli, game, games, gettext.

## Combined YAML source

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