# 使用 Homebrew, Nix 安装 somo

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

## 安装

```sh
sudo av install brew:somo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install somo
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#somo
```

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

## 软件包事实

- **软件包键:** brew:somo
- **软件包管理器:** Homebrew
- **版本:** 1.3.3
- **来源摘要:** Human-friendly alternative to netstat for socket and port monitoring
- **主页:** <https://github.com/theopfr/somo>
- **仓库:** <https://github.com/theopfr/somo>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- somo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

somo is a Rust command-line utility that presents socket and port information in a more human-friendly form than traditional `netstat` output. It targets Linux and macOS and is packaged through Cargo, Homebrew, Nix, Arch-style packaging, and downloadable releases.

### 项目历史

The upstream changelog records somo 1.0.0 on 4 June 2025, with command-line flag changes, tests, a logo, and removal of AbuseIPDB scanning. Version 1.1.0 in July 2025 added macOS support, shell completions, Nix packaging support, compact output, JSON/custom formatting, and other terminal-oriented features.

Later 2025 releases added config-file support for default flags, IANA service-name annotations, established-connection filtering, built-in paging, and README documentation for Homebrew installation. By April 2026 the latest GitHub release shown on the repository was 1.3.3.

### 采用历史

GitHub shows thousands of stars for the project, and Homebrew analytics show more than a thousand installs over the trailing year. That makes somo a visible example of the newer wave of Rust CLIs that repackage familiar Unix administration tasks with richer defaults.

### 使用方式

Users run `somo` or `sudo somo` to inspect connections, then filter by TCP/UDP, PID, process, local port, remote address, connection state, or output format. The README explicitly frames it as a move from `netstat -tulpn` to `somo -l`, with JSON output and generated shell completions for scripting and interactive use.

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

somo is package-nerd catnip because it follows the modern Rust CLI pattern: small static-feeling binary, polished table output, shell completions, JSON mode, Homebrew formula, Cargo install path, and Nix support. It competes culturally with old admin tools rather than replacing a network stack component.

### 时间线

- 2025: somo 1.0.0 released.
- 2025: somo 1.1.0 adds macOS support, shell completions, Nix packaging, JSON output, and compact mode.
- 2025: somo 1.2.0 adds config-file support and IANA service annotations.
- 2025: somo 1.3.0 updates documentation for Homebrew installation and adds automatic paging.
- 2026: somo 1.3.3 released.

### Related projects

- Traditional `netstat` is the comparison point used by the README.
- The README names procfs for Linux support and netstat2/libproc for macOS support.
- Cargo, Homebrew, Nix, and Arch-style packaging are all documented installation paths.

### 来源

- <https://docs.rs/crate/somo/latest>
- <https://formulae.brew.sh/api/formula/somo.json>
- <https://github.com/theopfr/somo>
- <https://raw.githubusercontent.com/theopfr/somo/master/CHANGELOG.md>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - somo: normalized package name match | nixpkgs package indexes: pkgs/by-name/so/somo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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