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

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

## 安装

```sh
sudo av install brew:netris
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install netris
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install netris
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#netris
```

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

- Ubuntu apt (92%):

```sh
sudo apt install netris
```

  证据: Ubuntu 24.04 LTS package indexes: netris from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:netris
- **软件包管理器:** Homebrew
- **版本:** 0.52
- **来源摘要:** Networked variant of tetris
- **主页:** <https://packages.debian.org/sid/netris>
- **最后更新:** 2026-08-01T14:23:39+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- netris (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Netris is a C/ncurses terminal game: a free, networked falling-block game distributed by Homebrew from Debian's 0.52 source tarball. Its upstream README identifies Mark H. Weaver as the author and carries copyright years 1994-1996 and 1999, placing it in the 1990s Unix network-game lineage rather than a modern hosted-repository workflow.

### 项目历史

The 0.52 source README describes the program as an unfinished developmental version and says it had been built and tested on GNU/Linux, FreeBSD, NetBSD, SunOS, Solaris, and HP-UX. That portability note explains why it survived in Unix package collections.

Version 0.52 fixed a buffer overflow reported by Artur Byszko. Debian continues to carry netris as source package `netris`, and Homebrew uses Debian's `netris_0.52.orig.tar.gz` as its stable source.

### 采用历史

Adoption is preservation-scale rather than mainstream. Debian lists the package in the games section and Homebrew analytics reported 68 installs over 365 days in the formula API consulted for this batch.

For package managers, netris remains useful as a small, dependency-light ncurses game with network play, old Unix portability assumptions, and enough patch history to keep compiling on modern systems.

### 使用方式

The practical use is direct terminal play. For a two-player network game, one player runs `netris -w` to wait for a challenge and the other runs `netris -c host` to connect.

The Ubuntu manpage documents options for custom ports, key remapping, robot control, random seeds, color disabling, and rules display.

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

Netris is package-nerd interesting because it is a compact specimen of 1990s terminal gaming: ncurses UI, direct TCP play, manual build configuration, and distro preservation.

It is also a reminder that package managers preserve cultural software, not just production infrastructure: a networked clone can remain one command away decades after upstream activity fades.

### 时间线

- 1994-1996, 1999: Copyright years in the upstream README for Mark H. Weaver's Netris.
- 1999: README revision marker in the 0.52 source archive.
- 0.52: Upstream release fixed a buffer overflow reported by Artur Byszko.
- 2026: Homebrew API reported stable source from Debian's 0.52 tarball and 68 installs over 365 days.

### Related projects

- Netris belongs to the family of terminal falling-block games and networked Unix games.
- Debian and Ubuntu packaging now provide the most visible documentation and source distribution surfaces for package-manager users.

### 来源

- <https://deb.debian.org/debian/pool/main/n/netris/netris_0.52.orig.tar.gz>
- <https://formulae.brew.sh/api/formula/netris.json>
- <https://manpages.ubuntu.com/manpages/noble/man6/netris.6.html>
- <https://packages.debian.org/sid/netris>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - netris: normalized package name match | nixpkgs package indexes: pkgs/by-name/ne/netris/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - netris - 0.52-11: normalized package name match | Ubuntu 24.04 LTS package indexes: netris from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | free, networked version of T*tris
- MacPorts - netris: normalized package name match | MacPorts ports tree: games/netris/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/netris.yml](https://github.com/mxcl/pkgdb/blob/main/combined/netris.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
