# 使用 Homebrew, dnf, MacPorts, Nix, apt 安装 spatialite-tools

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

## 安装

```sh
sudo av install brew:spatialite-tools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spatialite-tools
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install spatialite-tools
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install spatialite-tools
```

  证据: Fedora Rawhide package metadata: spatialite-tools 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#spatialite-tools
```

  证据: nixpkgs package indexes: pkgs/by-name/sp/spatialite-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install spatialite-bin
```

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

## 软件包事实

- **软件包键:** brew:spatialite-tools
- **软件包管理器:** Homebrew
- **版本:** 5.1.0a
- **来源摘要:** CLI tools supporting SpatiaLite
- **主页:** <https://www.gaia-gis.it/fossil/spatialite-tools/index>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- exif_loader (别名)
- shp_doctor (别名)
- shp_sanitize (别名)
- spatialite (别名)
- spatialite_convert (别名)
- spatialite_dem (别名)
- spatialite_dxf (别名)
- spatialite_gml (别名)
- spatialite_network (别名)
- spatialite_osm_filter (别名)
- spatialite_osm_map (别名)
- spatialite_osm_net (别名)
- spatialite_osm_overpass (别名)
- spatialite_osm_raw (别名)
- spatialite_tool (别名)
- spatialite_xml2utf8 (别名)
- spatialite_xml_collapse (别名)
- spatialite_xml_load (别名)
- spatialite_xml_print (别名)
- spatialite_xml_validator (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.1.0a
## 项目历史与用法

spatialite-tools is Gaia-SINS' collection of command-line utilities for working with SpatiaLite databases and geospatial exchange formats.

### 项目历史

The official project page describes spatialite-tools as open source CLI tools supporting SpatiaLite. The suite includes a spatialite shell comparable to sqlite3 but with SpatiaLite support, import/export helpers for Shapefiles and DBF files, diagnostics for Shapefiles, EXIF-GPS import, network/routing tools, GML and DXF importers, OpenStreetMap loaders, XML processors, and version-conversion tools.

### 采用历史

The input package facts list spatialite-tools or spatialite-bin in Homebrew, Debian, Fedora, MacPorts, Nix, and Ubuntu. That spread mirrors the package's role as the scripting and batch-processing face of SpatiaLite for GIS users.

### 使用方式

Users install the suite to get shell and batch utilities around SpatiaLite: loading Shapefiles, checking geometry data, importing OSM or GML data, converting database versions, creating network datasets, and processing XML-backed spatial datasets.

### 为什么软件包爱好者会关心

For package nerds, spatialite-tools matters because it makes SpatiaLite useful in pipelines. It turns a library-backed spatial database into command-line programs that can be depended on by scripts, distro packages, GIS workflows, and CI jobs.

### 时间线

- 2014: The Fossil timeline records work toward the 4.2.1 release candidate.
- 2015: Version 4.3.0 was released as stable.
- 2016: shp_repack was replaced by the more capable shp_sanitize in the Fossil timeline.
- 2023: Current version 5.1.0a was released on August 13.

### Related projects

- Officially related projects include libspatialite, spatialite_gui, FreeXL, ReadOSM, VirtualPG, and the Gaia-SINS project family.

### 来源

- <https://www.gaia-gis.it/fossil/spatialite-tools/index>
- <https://www.gaia-gis.it/fossil/spatialite-tools/timeline>
- <https://www.gaia-gis.it/gaia-sins/spatialite-cookbook-5/cookbook_topics.tools.html>
- source_facts.package-manager


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - spatialite-bin - 5.1.0a-2: normalized package name match | Debian stable package indexes: spatialite-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial extension for SQLite - tools | https://www.gaia-gis.it/fossil/spatialite-tools/
- Nix - spatialite-tools: normalized package name match | nixpkgs package indexes: pkgs/by-name/sp/spatialite-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - spatialite-bin - 5.1.0a-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: spatialite-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial extension for SQLite - tools | https://www.gaia-gis.it/fossil/spatialite-tools/
- dnf - spatialite-tools - 5.1.0a-7.fc45: normalized package name match | Fedora Rawhide package metadata: spatialite-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A set of useful CLI tools for SpatiaLite | https://www.gaia-gis.it/fossil/spatialite-tools
- MacPorts - spatialite-tools: normalized package name match | MacPorts ports tree: databases/spatialite-tools/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - spatialite: installed executable or alias match | MacPorts ports tree: databases/spatialite/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - libspatialite-dev - 5.1.0-3+b2: installed executable or alias match | Debian stable package indexes: libspatialite-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial extension for SQLite - development files | https://www.gaia-gis.it/fossil/libspatialite
- Debian apt - libspatialite8t64 - 5.1.0-3+b2: installed executable or alias match | Debian stable package indexes: libspatialite8t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial extension for SQLite - libraries | https://www.gaia-gis.it/fossil/libspatialite
- Debian apt - libsqlite3-mod-spatialite - 5.1.0-3+b2: installed executable or alias match | Debian stable package indexes: libsqlite3-mod-spatialite from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Geospatial extension for SQLite - loadable module | https://www.gaia-gis.it/fossil/libspatialite
- Ubuntu apt - libspatialite-dev - 5.1.0-3build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libspatialite-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial extension for SQLite - development files | https://www.gaia-gis.it/fossil/libspatialite
- Ubuntu apt - libspatialite8t64 - 5.1.0-3build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libspatialite8t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial extension for SQLite - libraries | https://www.gaia-gis.it/fossil/libspatialite
- Ubuntu apt - libsqlite3-mod-spatialite - 5.1.0-3build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libsqlite3-mod-spatialite from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Geospatial extension for SQLite - loadable module | https://www.gaia-gis.it/fossil/libspatialite


## Combined YAML source

View the package source record on GitHub. [combined/spatialite-tools.yml](https://github.com/mxcl/pkgdb/blob/main/combined/spatialite-tools.yml)


## 来源

- 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
