# Install ipcalc with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Calculate various network masks, etc. from a given IP address. Version 0.51 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:ipcalc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ipcalc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ipcalc
```

  Evidence: MacPorts ports tree: net/ipcalc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ipcalc
```

  Evidence: Alpine Linux edge package indexes: ipcalc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ipcalc
```

  Evidence: Debian stable package indexes: ipcalc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ipcalc
```

  Evidence: Fedora Rawhide package metadata: ipcalc 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#ipcalc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ip/ipcalc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ipcalc
```

  Evidence: Arch Linux sync databases: ipcalc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ipcalc
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/ipcalc
```

  Evidence: Scoop official bucket manifest trees: bucket/ipcalc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:ipcalc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ipcalc>
- **Version:** 0.51
- **Source summary:** Calculate various network masks, etc. from a given IP address
- **Homepage:** <https://jodies.de/ipcalc>
- **Repository:** <https://github.com/kjokjo/ipcalc>
- **Upstream docs:** <https://github.com/kjokjo/ipcalc#readme>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://github.com/kjokjo/ipcalc/archive/refs/tags/0.51.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ipcalc (cli)
- ipcalc (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.51
- Local data: ok
- Upstream repository: https://github.com/kjokjo/ipcalc
- Upstream latest detected: 0.51 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

ipcalc is Krischan Jodies' IP subnet calculator, later continued with IPv6 support in the kjokjo GitHub repository. It is one of the small networking CLIs administrators reach for when they need broadcast addresses, host ranges, wildcard masks, and subnet splits without opening a spreadsheet.

### Project history

The original jodies.de page describes ipcalc as a tool that takes an IP address and netmask, calculates the broadcast, network, Cisco wildcard mask, and host range, and presents subnetting results in binary form as a teaching aid. The page also says the tool works at the shell prompt and was not originally intended for creating HTML.

The source header on the CGI wrapper carries copyright years 2000-2021, while the archive lists releases from 0.34 in 2001 through 0.41 in 2006. The GitHub repository describes itself as the IPv6-capable continuation of the subnet calculator from jodies.de.

### Adoption history

ipcalc has broad package-manager reach for such a small script: the supplied metadata lists Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, and openSUSE packaging. The original site also calls out Debian installation directly.

That broad distribution reflects the utility's shape: subnet math is universal in operations work, and a dependency-light Perl script is easy for distributions to carry.

### How it is used

Users pass an address and mask, optionally with a second mask for subnet or supernet design. ipcalc prints network, broadcast, host minimum and maximum, host count, Cisco wildcard masks, class/private-network notes, and binary layouts.

The GitHub continuation adds IPv6 examples, including prefix calculation for IPv6 addresses, while preserving the familiar command-line output style of the original IPv4 calculator.

### Why package nerds care

ipcalc is a canonical tiny admin package: old, scriptable, easy to package, and still useful because IP addressing math does not go out of fashion. Its value is less in novelty than in being available everywhere when a human needs to sanity-check a CIDR block.

It also shows the preservation path of many Unix tools: an original personal web page, tarball archives, distro packages, and a GitHub continuation that adds IPv6 support while keeping the old interface recognizable.

### Timeline

- 2000: Source copyright begins for Krischan Jodies' ipcalc code.
- 2001-09-13: The archive lists the unpacked ipcalc-0.34 directory.
- 2005-07-07: Version 0.35.2 appears on the original page and archive.
- 2006-07-27: Security information was published for the CGI script.
- 2006-07-27: Archive entries include ipcalc 0.39, 0.40, and 0.41, with 0.41 adding network-range deaggregation.
- 2021-11-03: The GitHub continuation published release 0.51.
- 2021: The CGI wrapper copyright range extends through 2021.

### Related projects

- Related tools include distro-specific ipcalc variants, web subnet calculators, Cisco ACL wildcard-mask calculators, and broader network calculators such as sipcalc.
- The GitHub repository is explicitly a continuation of the original jodies.de calculator, not an unrelated rewrite under the same name.

### Sources

- <https://formulae.brew.sh/formula/ipcalc>
- <https://github.com/kjokjo/ipcalc>
- <https://github.com/kjokjo/ipcalc/blob/master/ipcalc.cgi>
- <https://github.com/kjokjo/ipcalc/releases/tag/0.51>
- <https://jodies.de/ipcalc>
- <https://jodies.de/ipcalc-archive/>
- <https://jodies.de/ipcalc-security.html>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - ipcalc - 0.51-1: normalized package name match | Debian stable package indexes: ipcalc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | parameter calculator for IPv4 addresses | http://jodies.de/ipcalc
- Nix - ipcalc: normalized package name match | nixpkgs package indexes: pkgs/by-name/ip/ipcalc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ipcalc - 0.51-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ipcalc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | parameter calculator for IPv4 addresses | http://jodies.de/ipcalc
- apk - ipcalc - 1.0.3-r1: normalized package name match | Alpine Linux edge package indexes: ipcalc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A modern IPv4/IPv6 ipcalc tool, assisting in network calculations in command line and as a tool for scripts. | https://gitlab.com/ipcalc/ipcalc
- apk - ipcalc-doc - 1.0.3-r1: normalized package name match | Alpine Linux edge package indexes: ipcalc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A modern IPv4/IPv6 ipcalc tool, assisting in network calculations in command line and as a tool for scripts. (documentation) | https://gitlab.com/ipcalc/ipcalc
- dnf - ipcalc - 1.0.3-13.fc44: normalized package name match | Fedora Rawhide package metadata: ipcalc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | IP network address calculator | https://gitlab.com/ipcalc/ipcalc
- pacman - ipcalc - 0.51-2: normalized package name match | Arch Linux sync databases: ipcalc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Calculates IP broadcast, network, Cisco wildcard mask, and host ranges | https://jodies.de/ipcalc
- zypper - ipcalc - 1.0.3-2.6: normalized package name match | openSUSE Tumbleweed package metadata: ipcalc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | IPv4/IPv6 tool assisting in network calculations on the command line | https://gitlab.com/ipcalc/ipcalc
- MacPorts - ipcalc: normalized package name match | MacPorts ports tree: net/ipcalc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/ipcalc: normalized package name match | Scoop official bucket manifest trees: bucket/ipcalc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [asn](https://www.automicvault.com/pkg/brew/asn/) - Popular package that depends on this formula.
- [grepip](https://www.automicvault.com/pkg/brew/grepip/) - Shares av.db curated category or tags: cli, ip-tools, ipv6, networking.
- [ipinfo](https://www.automicvault.com/pkg/brew/ipinfo/) - Shares av.db curated category or tags: cli, ip-address, network-calculator, networking, subnet.
- [grepcidr](https://www.automicvault.com/pkg/brew/grepcidr/) - Shares av.db curated category or tags: cli, ip-tools, networking.
- [netaddr](https://www.automicvault.com/pkg/brew/netaddr/) - Shares av.db curated category or tags: cli, ip-address, ipv6, networking.
- [netmask](https://www.automicvault.com/pkg/brew/netmask/) - Shares av.db curated category or tags: cli, netmask, networking, subnet.
- [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, ipv6, networking.
- [cjdns](https://www.automicvault.com/pkg/brew/cjdns/) - Shares av.db curated category or tags: cli, ipv6, networking.

## Combined YAML source

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