# Install subnetcalc with Homebrew, apt, dnf, Nix, zypper

IPv4/IPv6 subnet calculator. Version 2.7.4 via Homebrew; verified 2026-06-20.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install subnetcalc
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install subnetcalc
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: subnetcalc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:subnetcalc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/subnetcalc>
- **Version:** 2.7.4
- **Source summary:** IPv4/IPv6 subnet calculator
- **Homepage:** <https://www.nntb.no/~dreibh/subnetcalc/index.html>
- **Repository:** <https://github.com/dreibh/subnetcalc>
- **Upstream docs:** <https://github.com/dreibh/subnetcalc#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/dreibh/subnetcalc/archive/refs/tags/subnetcalc-2.7.4.tar.gz>
- **Last updated:** 2026-06-20T15:54:37Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- subnetcalc (cli)
- subnetcalc (alias)

## Dependencies

- gettext
- libidn2
- libmaxminddb

## Build dependencies

- cmake
- gettext

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.7.4
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://github.com/dreibh/subnetcalc
- Upstream latest detected: subnetcalc-2.7.4 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- 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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** subnetcalc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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.1-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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | IPv4/IPv6 Subnet Calculator | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc - 2.6.6-1.1: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | IPv4/IPv6 Subnet Calculator | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc-bash-completion - 2.6.6-1.1: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for subnetcalc | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc-doc - 2.6.6-1.1: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation for subnetcalc | https://www.nntb.no/~dreibh/subnetcalc/
- zypper - subnetcalc-lang - 2.6.6-1.1: normalized package name match | openSUSE Tumbleweed package metadata: subnetcalc-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Translations for package subnetcalc | https://www.nntb.no/~dreibh/subnetcalc/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [libidn2](https://www.automicvault.com/pkg/brew/libidn2/) - Runtime dependency declared by Homebrew.
- [libmaxminddb](https://www.automicvault.com/pkg/brew/libmaxminddb/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [sipcalc](https://www.automicvault.com/pkg/brew/sipcalc/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking, subnet-calculator.
- [grepip](https://www.automicvault.com/pkg/brew/grepip/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [inetutils](https://www.automicvault.com/pkg/brew/inetutils/) - Shares av.db curated category or tags: cli, networking, utilities.
- [ahcpd](https://www.automicvault.com/pkg/brew/ahcpd/) - Shares av.db curated category or tags: cli, ipv6, networking.
- [babeld](https://www.automicvault.com/pkg/brew/babeld/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [ddns-go](https://www.automicvault.com/pkg/brew/ddns-go/) - Shares av.db curated category or tags: cli, ipv4, ipv6, networking.
- [grepcidr](https://www.automicvault.com/pkg/brew/grepcidr/) - Shares av.db curated category or tags: cli, ipv4, networking.
- [i2util](https://www.automicvault.com/pkg/brew/i2util/) - Shares av.db curated category or tags: cli, networking, utilities.

## Combined YAML source

View the package source record on GitHub. [combined/subnetcalc.yml](https://github.com/automic-vault/db/blob/main/combined/subnetcalc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
