# Install mapcidr with Homebrew, Nix

Subnet/CIDR operation utility. Version 1.1.97 via Homebrew; verified 2026-07-29. Also installable with nix: nix profile install nixpkgs#mapcidr.

## Install

```sh
sudo av install brew:mapcidr
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mapcidr
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mapcidr
```

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

## Package facts

- **Package key:** brew:mapcidr
- **Package manager:** Homebrew
- **Version:** 1.1.97
- **Source summary:** Subnet/CIDR operation utility
- **Homepage:** <https://projectdiscovery.io>
- **Repository:** <https://github.com/projectdiscovery/mapcidr>
- **Last updated:** 2026-07-29T17:04:50+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- mapcidr (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.1.97
## Project history and usage

mapcidr is a ProjectDiscovery Go utility and library for subnet and CIDR operations, including expansion, slicing, aggregation, matching, filtering, sorting, and IP format conversion.

### Project history

The public repository was created in August 2020. The README says mapCIDR was developed to ease load distribution for mass scanning operations and can be used both as an independent CLI and as a Go library.

### Adoption history

mapcidr is distributed through Go install, Homebrew, and other package-manager channels. Its adoption is tied to ProjectDiscovery's security tooling ecosystem, where CIDR expansion and splitting are common preparation steps for scanning and reconnaissance.

### How it is used

Common uses include expanding CIDR ranges to IP lists, slicing large ranges into smaller blocks by CIDR or host count, aggregating IPs back into minimal subnets, filtering or matching IPs, sorting ranges, shuffling IP or IP:port input, and converting IPv4/IPv6 formats.

### Why package nerds care

mapcidr is useful package-manager glue for operators who need predictable, scriptable IP range transformations before passing targets into scanners, probes, or asset-inventory tools.

### Timeline

- 2020: Public GitHub repository created.
- 2024: v1.1.34 release published.
- 2025: v1.1.97 release published.

### Related projects

- ProjectDiscovery maintains mapcidr as part of its broader open-source security tooling ecosystem.

### Sources

- <https://github.com/projectdiscovery/mapcidr>
- <https://github.com/projectdiscovery/mapcidr#readme>
- <https://github.com/projectdiscovery/mapcidr/releases/tag/v1.1.97>


## Security Notes

narrow executable package without higher-risk signals.

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

## Other Package-Manager Records

- Nix - mapcidr: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mapcidr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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