# ip2location を Homebrew, apk, Nix, dnf でインストール

ip2location のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ip2location
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ip2location
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add ip2location
```

  証拠: Alpine Linux edge package indexes: ip2location from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#ip2location
```

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

- dnf (92%):

```sh
sudo dnf install IP2Location
```

  証拠: Fedora Rawhide package metadata: IP2Location from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:ip2location
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ip2location>
- **バージョン:** 8.7.0
- **ソース概要:** C library and CLI to geolocate IP addresses
- **ホームページ:** <https://github.com/ip2location/IP2Location-C-Library>
- **リポジトリ:** <https://github.com/ip2location/IP2Location-C-Library>
- **上流ドキュメント:** <https://github.com/ip2location/IP2Location-C-Library#readme>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/ip2location/IP2Location-C-Library/archive/refs/tags/8.7.0.tar.gz>
- **最終更新:** 2026-06-18T16:19:53Z
- **生成日時:** 2026-07-26T07:20:29+00:00

## 実行可能ファイル

- ip2location (cli)
- ip2location (エイリアス)

## ビルド依存関係

- autoconf
- automake
- libtool

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-26
- マネージャ版: 8.7.0
- マネージャ更新日: 2026-06-18
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/ip2location/IP2Location-C-Library
- 検出された最新: 8.7.0 (最新)
## プロジェクトの歴史と使われ方

IP2Location C Library is the C implementation and command-line front end for querying IP2Location BIN geolocation databases. In package-manager terms it is a small native bridge between downloadable IP intelligence data and Unix automation, exposing both a library API and the `ip2location` executable.

### プロジェクトの歴史

The project belongs to IP2Location's family of language libraries for its commercial and LITE geolocation databases. Its README describes lookups for country, region, city, coordinates, postal code, ISP, domain, usage type, address type, IAB category, ASN, and related database fields, with the library reading those values from IP2Location BIN files.

The changelog shows a long 2010s evolution around data-file formats and API breadth: 2013 added memory and cache opening modes, 2014 added IPv6 support, 2016 added lookup support for an index section in a new BIN format, and later releases moved detailed notes to GitHub releases.

### 採用の歴史

The Homebrew formula and other package-manager metadata make the C library easy to install on developer machines and servers that need local IP geolocation without a hosted API call. Its Fedora package links from the upstream README show the project also reaching Linux distribution packaging.

The project is not just a single CLI convenience: related IP2Location modules, such as the Varnish module, depend on the C library as the native lookup layer, which gives the package importance beyond direct command-line use.

### 使われ方

Typical usage is to install the library, obtain an IP2Location BIN database, and run `ip2location -d [database] --ip [address]` or feed addresses from a file. Library consumers use the C API where a low-level native geolocation lookup is preferable to shelling out.

The package is useful in log enrichment, local analytics, security tooling, and edge services where repeat geolocation lookups should avoid network latency or third-party API calls.

### パッケージ好きにとっての重要性

For package maintainers, IP2Location C Library is a classic data-plus-native-library package: the code is small, the value comes from compatibility with external database files, and downstream packaging must keep the CLI, shared library, sample data, and documentation aligned.

It also illustrates a common Homebrew pattern for vendor-backed data tooling: a permissively licensed client library shipped separately from the proprietary or separately licensed data products it reads.

### タイムライン

- 2013: Version 6.0.0 added memory, cache, and shared-memory opening and cleanup APIs.
- 2014: Version 7.0.0 added IPv6 support and removed the IMath library dependency.
- 2016: Version 8.0.0 added lookup support for the index section in a newer BIN format.
- 2017: Version 8.0.5 closed out the in-file changelog era before release notes moved to GitHub releases.
- 2023: The 8.6.x releases continued the GitHub release stream.
- 2025: Version 8.7.0 was published through GitHub releases.

### Related projects

- Related upstream projects include the IP2Location database products, IP2Location LITE sample databases, language-specific IP2Location libraries, and modules such as IP2Location-Varnish that use the C library as a dependency.
- At the package level it sits near tools such as GeoIP and libmaxminddb, but it is tied to the IP2Location BIN database format rather than MaxMind's MMDB format.

### ソース

- <https://formulae.brew.sh/formula/ip2location>
- <https://github.com/ip2location/IP2Location-C-Library>
- <https://github.com/ip2location/IP2Location-C-Library/blob/master/ChangeLog>
- <https://www.ip2location.com/documentation/ip2location-libraries/c>


## セキュリティノート

ip2location に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Nix - ip2location: normalized package name match | nixpkgs package indexes: pkgs/by-name/ip/ip2location/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ip2location - 8.6.1-r0: normalized package name match | Alpine Linux edge package indexes: ip2location from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lookup country, region and city information by IP addresses | https://www.ip2location.com/development-libraries/ip2location/c
- apk - ip2location-dev - 8.6.1-r0: normalized package name match | Alpine Linux edge package indexes: ip2location-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lookup country, region and city information by IP addresses (development files) | https://www.ip2location.com/development-libraries/ip2location/c
- apk - ip2location-doc - 8.6.1-r0: normalized package name match | Alpine Linux edge package indexes: ip2location-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lookup country, region and city information by IP addresses (documentation) | https://www.ip2location.com/development-libraries/ip2location/c
- dnf - IP2Location - 8.7.0-3.fc44: normalized package name match | Fedora Rawhide package metadata: IP2Location from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tools for mapping IP address to geolocation information | https://www.ip2location.com/
- dnf - IP2Location-data-sample - 8.7.0-3.fc44: normalized package name match | Fedora Rawhide package metadata: IP2Location-data-sample from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Sample data files for the IP2Location library | https://www.ip2location.com/
- dnf - IP2Location-devel - 8.7.0-3.fc44: normalized package name match | Fedora Rawhide package metadata: IP2Location-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for the IP2Location library | https://www.ip2location.com/
- dnf - IP2Location-libs - 8.7.0-3.fc44: normalized package name match | Fedora Rawhide package metadata: IP2Location-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C library for mapping IP address to geolocation information | https://www.ip2location.com/


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autoconf](https://www.automicvault.com/ja/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/ja/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/ja/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [libmaxminddb](https://www.automicvault.com/ja/pkg/brew/libmaxminddb/) - Shares av.db curated category or tags: c, cli, data, database, geolocation.
- [ejdb](https://www.automicvault.com/ja/pkg/brew/ejdb/) - Shares av.db curated category or tags: c, cli, data, database.
- [gdbm](https://www.automicvault.com/ja/pkg/brew/gdbm/) - Shares av.db curated category or tags: cli, data, database, library.
- [kyoto-cabinet](https://www.automicvault.com/ja/pkg/brew/kyoto-cabinet/) - Shares av.db curated category or tags: cli, data, database, library.
- [leveldb](https://www.automicvault.com/ja/pkg/brew/leveldb/) - Shares av.db curated category or tags: cli, data, database, library.
- [liblzf](https://www.automicvault.com/ja/pkg/brew/liblzf/) - Shares av.db curated category or tags: c, cli, data, library.
- [libmatio](https://www.automicvault.com/ja/pkg/brew/libmatio/) - Shares av.db curated category or tags: c, cli, data, library.
- [libmemcached](https://www.automicvault.com/ja/pkg/brew/libmemcached/) - Shares av.db curated category or tags: c, cli, data, library.
- [bee](https://www.automicvault.com/ja/pkg/brew/bee/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database.
- [ccm](https://www.automicvault.com/ja/pkg/brew/ccm/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database.

## Combined YAML source

View the package source record on GitHub. [combined/ip2location.yml](https://github.com/automic-vault/db/blob/main/combined/ip2location.yml)


## ソース

- Nucleus package database
- 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
