# Install asnmap with Homebrew, dnf, Nix

Quickly map organization network ranges using ASN information. Version 1.1.1 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#asnmap.

## Install

```sh
sudo av install brew:asnmap
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install asnmap
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install asnmap
```

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

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

## Package facts

- **Package key:** brew:asnmap
- **Package manager:** Homebrew
- **Version:** 1.1.1
- **Source summary:** Quickly map organization network ranges using ASN information
- **Homepage:** <https://github.com/projectdiscovery/asnmap>
- **Repository:** <https://github.com/projectdiscovery/asnmap>
- **Last updated:** 2026-07-25T14:18:26-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- asnmap (alias)

## Install behavior

- Bottle: not available

## Freshness

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

asnmap is ProjectDiscovery's Go CLI and library for mapping autonomous system, organization, domain, and IP inputs to network ranges. It fits the ProjectDiscovery style of small composable reconnaissance tools with stdin/stdout support and automation-friendly JSON and CSV output.

### Project history

The official README presents asnmap as both a command-line tool and Go library built on top of the ASNMap API. It acknowledges Frank Denis for maintaining the free IPtoASN database, making the project a packaged interface around ASN/CIDR lookup data useful in security and network inventory workflows.

### Adoption history

The Homebrew input records asnmap in Homebrew, dnf, and Nix. Upstream installation also documents `go install github.com/projectdiscovery/asnmap/cmd/asnmap@latest` and precompiled binaries from the GitHub releases page, which is typical for ProjectDiscovery tools distributed both through Go and OS package managers.

### How it is used

asnmap accepts ASN, IP, domain, organization, file, and stdin input. Common package-manager usage is simple shell composition: query an organization or AS number, emit CIDR ranges, and pipe them into other recon tools.

The README explicitly shows pipelines into ProjectDiscovery tools such as `tlsx`, `dnsx`, `naabu`, `httpx`, and `nuclei`, and it documents JSON and CSV output for post-processing.

### Why package nerds care

For package nerds, asnmap is notable less as a standalone network database and more as a glue utility: it converts high-level organization or ASN targets into CIDR material that the rest of a CLI security toolchain can consume.

The tool's API-token support also marks a shift seen in modern recon CLIs: a packaged open-source binary can still depend on a hosted platform token for full operation.

### Timeline

- 2022: README examples show v0.0.1-era output and timestamped JSON examples for ASN/CIDR lookup.
- Current README: Installation requires Go 1.21, supports precompiled releases, and documents ProjectDiscovery Cloud API token configuration.

### Related projects

- The README documents direct workflow use with `tlsx`, `dnsx`, `naabu`, `httpx`, and `nuclei`, all in the ProjectDiscovery CLI ecosystem.
- The README acknowledges the IPtoASN database maintained by Frank Denis as related data infrastructure.

### Sources

- <https://github.com/projectdiscovery/asnmap#readme>
- input.source_facts.package-manager


## Security Notes

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

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

## Other Package-Manager Records

- Nix - asnmap: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/asnmap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - asnmap - 1.1.1-10.fc45: normalized package name match | Fedora Rawhide package metadata: asnmap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Go CLI and Library for quickly mapping organization network ranges using ASN information | https://github.com/projectdiscovery/asnmap


## Combined YAML source

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