# Install asnmap with Homebrew, dnf, Nix

Quickly map organization network ranges using ASN information. Version 1.1.1 via Homebrew; verified from local package data.

## 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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
- **Package manager page:** <https://formulae.brew.sh/formula/asnmap>
- **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>
- **Upstream docs:** <https://github.com/projectdiscovery/asnmap#readme>
- **License:** MIT
- **Source archive:** <https://github.com/projectdiscovery/asnmap/archive/refs/tags/v1.1.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- asnmap (cli)
- asnmap (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.1.1
- Local data: ok
- Upstream repository: https://github.com/projectdiscovery/asnmap
- Upstream latest detected: v1.1.1 (current)
- info: No package-manager update timestamp was available.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** asnmap
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 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-9.fc44: normalized package name match | Fedora Rawhide package metadata: asnmap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Go CLI and Library for quickly mapping organization network ranges using ASN information | https://github.com/projectdiscovery/asnmap


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [asn](https://www.automicvault.com/pkg/brew/asn/) - Shares av.db curated category or tags: asn, cli, network, networking.
- [arping](https://www.automicvault.com/pkg/brew/arping/) - Shares av.db curated category or tags: cli, network, networking.
- [asroute](https://www.automicvault.com/pkg/brew/asroute/) - Shares av.db curated category or tags: cli, network, networking.
- [geoip2fast](https://www.automicvault.com/pkg/brew/geoip2fast/) - Shares av.db curated category or tags: asn, cli, networking.
- [activemq](https://www.automicvault.com/pkg/brew/activemq/) - Shares av.db curated category or tags: cli, networking.
- [adns](https://www.automicvault.com/pkg/brew/adns/) - Shares av.db curated category or tags: cli, networking.
- [aerleon](https://www.automicvault.com/pkg/brew/aerleon/) - Shares av.db curated category or tags: cli, networking.
- [ahcpd](https://www.automicvault.com/pkg/brew/ahcpd/) - Shares av.db curated category or tags: cli, networking.
- [arp-scan](https://www.automicvault.com/pkg/brew/arp-scan/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, network, networking, scanner.

## Combined YAML source

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