# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 ipcalc

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ipcalc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ipcalc
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

  证据: 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
```

  证据: 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
```

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

### Windows

- Scoop (92%):

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

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

## 软件包事实

- **软件包键:** brew:ipcalc
- **软件包管理器:** Homebrew
- **版本:** 0.51
- **来源摘要:** Calculate various network masks, etc. from a given IP address
- **主页:** <https://jodies.de/ipcalc>
- **仓库:** <https://github.com/kjokjo/ipcalc>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ipcalc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- 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-14.fc45: normalized package name match | Fedora Rawhide package metadata: ipcalc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.8: normalized package name match | openSUSE Tumbleweed package metadata: ipcalc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

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