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

IPv4/IPv6 subnet calculator. Version 2.7.5 via Homebrew; verified 2026-07-31. Also installable with debian: sudo apt install subnetcalc.

## 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:subnetcalc
- **Package manager:** Homebrew
- **Version:** 2.7.5
- **Source summary:** IPv4/IPv6 subnet calculator
- **Homepage:** <https://www.nntb.no/~dreibh/subnetcalc/index.html>
- **Repository:** <https://github.com/dreibh/subnetcalc>
- **Last updated:** 2026-07-31T13:29:18Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- subnetcalc (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.7.5
## 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

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


## Sources

- 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
