# Install spatialite-tools with Homebrew, dnf, MacPorts, Nix, apt

CLI tools supporting SpatiaLite. Version 5.1.0a via Homebrew; verified from local package data. Also installable with debian: sudo apt install spatialite-bin.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:spatialite-tools
- **Package manager:** Homebrew
- **Version:** 5.1.0a
- **Source summary:** CLI tools supporting SpatiaLite
- **Homepage:** <https://www.gaia-gis.it/fossil/spatialite-tools/index>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

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

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 5.1.0a
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- 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)


## Sources

- 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
