# 使用 Homebrew, apk, dnf, MacPorts, apt 安装 libkml

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

## 安装

```sh
sudo av install brew:libkml
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libkml
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libkml
```

  证据: MacPorts ports tree: gis/libkml/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libkml
```

  证据: Alpine Linux edge package indexes: libkml from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libkml
```

  证据: Fedora Rawhide package metadata: libkml from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install libkml-dev
```

  证据: Debian stable package indexes: libkml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:libkml
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libkml>
- **版本:** 1.3.0
- **来源摘要:** Library to parse, generate and operate on KML
- **主页:** <https://github.com/libkml/libkml>
- **仓库:** <https://github.com/libkml/libkml>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/libkml/libkml/archive/refs/tags/1.3.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 依赖

- minizip
- uriparser

## 构建依赖

- boost
- cmake

## macOS 提供的库

- curl
- expat

## 安装行为

- post-install 钩子: 未定义
- 注意事项: libkml uses boost headers. To develop with libkml, install boost.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 本地数据: OK
- 上游仓库: https://github.com/libkml/libkml
- 检测到的最新版本: 1.3.0 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

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


## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - libkml-dev - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - development files | https://github.com/libkml/libkml
- Debian apt - libkmlbase1t64 - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkmlbase1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - libkmlbase | https://github.com/libkml/libkml
- Debian apt - libkmlconvenience1t64 - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkmlconvenience1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - libkmlconvenience | https://github.com/libkml/libkml
- Debian apt - libkmldom1t64 - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkmldom1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - libkmldom | https://github.com/libkml/libkml
- Debian apt - libkmlengine1t64 - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkmlengine1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - libkmlengine | https://github.com/libkml/libkml
- Debian apt - libkmlregionator1t64 - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkmlregionator1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - libkmlregionator | https://github.com/libkml/libkml
- Debian apt - libkmlxsd1t64 - 1.3.0-12+b2: normalized package name match | Debian stable package indexes: libkmlxsd1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to manipulate KML 2.2 OGC standard files - libkmlxsd | https://github.com/libkml/libkml
- Ubuntu apt - libkml-dev - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - development files | https://github.com/libkml/libkml
- Ubuntu apt - libkmlbase1t64 - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkmlbase1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - libkmlbase | https://github.com/libkml/libkml
- Ubuntu apt - libkmlconvenience1t64 - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkmlconvenience1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - libkmlconvenience | https://github.com/libkml/libkml
- Ubuntu apt - libkmldom1t64 - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkmldom1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - libkmldom | https://github.com/libkml/libkml
- Ubuntu apt - libkmlengine1t64 - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkmlengine1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - libkmlengine | https://github.com/libkml/libkml
- Ubuntu apt - libkmlregionator1t64 - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkmlregionator1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - libkmlregionator | https://github.com/libkml/libkml
- Ubuntu apt - libkmlxsd1t64 - 1.3.0-12build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkmlxsd1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library to manipulate KML 2.2 OGC standard files - libkmlxsd | https://github.com/libkml/libkml
- apk - java-libkml - 1.3.0-r13: normalized package name match | Alpine Linux edge package indexes: java-libkml from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Java bindings for libkml | https://github.com/libkml/libkml
- apk - libkml - 1.3.0-r13: normalized package name match | Alpine Linux edge package indexes: libkml from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Reference implementation of OGC KML 2.2 | https://github.com/libkml/libkml


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [uriparser](https://pkg.so/zh-hans/brew/uriparser/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [gdal](https://pkg.so/zh-hans/brew/gdal/) - Popular package that depends on this formula.
- [dxpy](https://pkg.so/zh-hans/brew/dxpy/) - Local package facts share a topical domain. Shared terms: generate, parse.
- [appdmg](https://pkg.so/zh-hans/npm/appdmg/) - Local package facts share a topical domain. Shared terms: generate, parse.
- [keep-a-changelog](https://pkg.so/zh-hans/npm/keep-a-changelog/) - Local package facts share a topical domain. Shared terms: generate, parse.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
