# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/somo>
- **版本:** 1.3.3
- **来源摘要:** Human-friendly alternative to netstat for socket and port monitoring
- **主页:** <https://github.com/theopfr/somo>
- **仓库:** <https://github.com/theopfr/somo>
- **许可证:** MIT
- **源码归档:** <https://github.com/theopfr/somo/archive/refs/tags/v1.3.3.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- somo (cli)
- somo (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.3
- 本地数据: OK
- 上游仓库: https://github.com/theopfr/somo
- 检测到的最新版本: v1.3.3 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** somo
- **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

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

- 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


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [net-tools](https://pkg.so/zh-hans/brew/net-tools/) - Shares pkgdb curated category or tags: cli, linux, netstat, networking.
- [snitch](https://pkg.so/zh-hans/brew/snitch/) - Shares pkgdb curated category or tags: cli, monitoring, netstat, networking.
- [launch_socket_server](https://pkg.so/zh-hans/brew/launch-socket-server/) - Shares pkgdb curated category or tags: cli, macos, networking, sockets.
- [iproute2mac](https://pkg.so/zh-hans/brew/iproute2mac/) - Shares pkgdb curated category or tags: cli, macos, networking.
- [autossh](https://pkg.so/zh-hans/brew/autossh/) - Shares pkgdb curated category or tags: cli, monitoring, networking.
- [fping](https://pkg.so/zh-hans/brew/fping/) - Shares pkgdb curated category or tags: cli, monitoring, networking.
- [socket_vmnet](https://pkg.so/zh-hans/brew/socket-vmnet/) - Shares pkgdb curated category or tags: cli, macos, networking.
- [httping](https://pkg.so/zh-hans/brew/httping/) - Shares pkgdb curated category or tags: cli, monitoring, networking.
- [dish](https://pkg.so/zh-hans/brew/dish/) - Local package facts share a topical domain. Shared terms: cli, monitoring, networking, socket.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
