Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, dnf 安装 ip2location

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ip2location

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ip2location

Alpine Linux edge package indexes · ip2location · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#ip2location

nixpkgs package indexes · pkgs/by-name/ip/ip2location/package.nix · 来源: api.github.com

Fedora dnf已验证 · 92%
sudo dnf install IP2Location

Fedora Rawhide package metadata · IP2Location · 来源: dl.fedoraproject.org

概览

软件包摘要

C library and CLI to geolocate IP addresses

命令和别名

  • ip2location

历史

项目历史与用法

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.

安全态势

尚未找到受保护工具覆盖

没有找到 ip2location 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ip2locationcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本8.7.0
管理器更新时间2026-06-18
本地数据OK
上游当前
检测到的最新版本8.7.0

https://github.com/ip2location/IP2Location-C-Library

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ip2location
版本8.7.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ip2location
主页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
Pulseupdated
构建依赖autoconf, automake, libtool
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameip2location
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

ip2location

nix profile install nixpkgs#ip2location
  • normalized package name match
  • 匹配方式:Ip2location
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ip/ip2location/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

ip2location 8.6.1-r0

Lookup country, region and city information by IP addresses

https://www.ip2location.com/development-libraries/ip2location/c

sudo apk add ip2location
  • License: MIT
  • Architecture: x86_64
  • Source Package: ip2location
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ip2location
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ip2location from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ip2location-dev 8.6.1-r0

Lookup country, region and city information by IP addresses (development files)

https://www.ip2location.com/development-libraries/ip2location/c

sudo apk add ip2location-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: ip2location
  • 1 依赖
  • normalized package name match
  • 匹配方式:Ip2location
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ip2location-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ip2location-doc 8.6.1-r0

Lookup country, region and city information by IP addresses (documentation)

https://www.ip2location.com/development-libraries/ip2location/c

sudo apk add ip2location-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: ip2location
  • normalized package name match
  • 匹配方式:Ip2location
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ip2location-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

IP2Location 8.7.0-3.fc44

Tools for mapping IP address to geolocation information

https://www.ip2location.com/

sudo dnf install IP2Location
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: IP2Location
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ip2location
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: IP2Location from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

IP2Location-data-sample 8.7.0-3.fc44

Sample data files for the IP2Location library

https://www.ip2location.com/

sudo dnf install IP2Location-data-sample
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: IP2Location
  • 1 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ip2location
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

IP2Location-devel 8.7.0-3.fc44

Development files for the IP2Location library

https://www.ip2location.com/

sudo dnf install IP2Location-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: IP2Location
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ip2location
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

IP2Location-libs 8.7.0-3.fc44

C library for mapping IP address to geolocation information

https://www.ip2location.com/

sudo dnf install IP2Location-libs
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: IP2Location
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ip2location
Fedora Rawhide package metadata · dl.fedoraproject.org · 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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment