# 使用 Homebrew, apt, dnf, Nix, zypper 安装 subnetcalc

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

## 安装

```sh
sudo av install brew:subnetcalc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install subnetcalc
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install subnetcalc
```

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

- dnf (92%):

```sh
sudo dnf install subnetcalc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#subnetcalc
```

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

- zypper (92%):

```sh
sudo zypper install subnetcalc
```

  证据: openSUSE Tumbleweed package metadata: subnetcalc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:subnetcalc
- **软件包管理器:** Homebrew
- **版本:** 2.7.5
- **来源摘要:** IPv4/IPv6 subnet calculator
- **主页:** <https://www.nntb.no/~dreibh/subnetcalc/index.html>
- **仓库:** <https://github.com/dreibh/subnetcalc>
- **最后更新:** 2026-07-31T13:29:18Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- subnetcalc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

subnetcalc is a compact IPv4/IPv6 subnet calculator. Its package-manager relevance is straightforward: network operators and developers want a tiny local CLI that can answer address, prefix, mask, and reverse-DNS questions without opening a web calculator.

### 项目历史

The official project page and GitHub repository describe subnetcalc as an IPv4 and IPv6 subnet calculator. The upstream changelog records continuing maintenance through the 2.x series, including modernizations such as build-system updates, package metadata, and optional integrations.

### 采用历史

The official README gives package-oriented installation examples, including Ubuntu/Debian and Fedora commands, and the Homebrew input records additional availability in Homebrew, Nix, and openSUSE-family package managers. That is the normal adoption pattern for a small network CLI: broad distro packaging rather than a large standalone ecosystem.

### 使用方式

Typical use is invoking `subnetcalc` with an address or network prefix to print derived subnet information. Because it has no documented per-user configuration or credential store, it behaves like a traditional Unix filter-style utility: install it, run it, and get deterministic text output.

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

Package nerds care about subnetcalc because it is the sort of low-dependency diagnostic binary that belongs in base images, operations laptops, and rescue toolkits. It overlaps with mental math, `ipcalc`-style tools, and shell snippets, but packaging it gives users a consistent implementation across systems.

### 时间线

- 2009: The upstream changelog records early subnetcalc development and Debian packaging work.
- 2010: The changelog records FreeBSD ports work.
- 2026: Official Git tags show active 2.7.x releases.

### Related projects

- Related package-manager neighbors include `ipcalc`, `sipcalc`, and other local subnet calculators, but subnetcalc's official positioning is specifically IPv4/IPv6 subnet calculation.

### 来源

- Input package-manager data: source_facts.package-manager
- Official changelog in repository: https://github.com/dreibh/subnetcalc/blob/master/ChangeLog
- Official homepage: https://www.nntb.no/~dreibh/subnetcalc/index.html
- Official repository: https://github.com/dreibh/subnetcalc


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - subnetcalc - 2.6.2-1: normalized package name match | Debian stable package indexes: subnetcalc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | IPv4/IPv6 Subnet Calculator | https://www.nntb.no/~dreibh/subnetcalc/
- Nix - subnetcalc: normalized package name match | nixpkgs package indexes: pkgs/by-name/su/subnetcalc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - subnetcalc - 2.4.23-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: subnetcalc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | IPv4/IPv6 Subnet Calculator | https://www.nntb.no/~dreibh/subnetcalc/
- dnf - subnetcalc - 2.7.5-1.fc45: normalized package name match | Fedora Rawhide package metadata: subnetcalc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | IPv4/IPv6 Subnet Calculator | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc - 2.6.6-1.3: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | IPv4/IPv6 Subnet Calculator | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc-bash-completion - 2.6.6-1.3: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for subnetcalc | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc-doc - 2.6.6-1.3: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for subnetcalc | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc-lang - 2.6.6-1.3: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package subnetcalc | https://www.nntb.no/~dreibh/subnetcalc/


## Combined YAML source

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