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

CLI tools supporting SpatiaLite. Version 5.1.0a via Homebrew; verified from local package data.

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

- 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

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

## Package facts

- **Package key:** brew:spatialite-tools
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/spatialite-tools>
- **Version:** 5.1.0a
- **Source summary:** CLI tools supporting SpatiaLite
- **Homepage:** <https://www.gaia-gis.it/fossil/spatialite-tools/index>
- **Repository:** <https://www.gaia-gis.it/fossil/spatialite-tools>
- **Upstream docs:** <https://www.gaia-gis.it/fossil/spatialite-tools/index>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-5.1.0a.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- exif_loader (cli)
- shp_doctor (cli)
- shp_sanitize (cli)
- spatialite (cli)
- spatialite_convert (cli)
- spatialite_dem (cli)
- spatialite_dxf (cli)
- spatialite_gml (cli)
- spatialite_network (cli)
- spatialite_osm_filter (cli)
- spatialite_osm_map (cli)
- spatialite_osm_net (cli)
- spatialite_osm_overpass (cli)
- spatialite_osm_raw (cli)
- spatialite_tool (cli)
- spatialite_xml2utf8 (cli)
- spatialite_xml_collapse (cli)
- spatialite_xml_load (cli)
- spatialite_xml_print (cli)
- spatialite_xml_validator (cli)
- 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)

## Dependencies

- freexl
- geos
- librttopo
- libspatialite
- libxml2
- minizip
- proj
- readline
- readosm
- sqlite

## Build dependencies

- pkgconf

## Uses from macOS

- expat

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.1.0a
- Local data: ok
- Upstream repository: https://www.gaia-gis.it/fossil/spatialite-tools/index
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## 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

## Source Database Details

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

## 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-6.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [geos](https://www.automicvault.com/pkg/brew/geos/) - Runtime dependency declared by Homebrew.
- [libxml2](https://www.automicvault.com/pkg/brew/libxml2/) - Runtime dependency declared by Homebrew.
- [proj](https://www.automicvault.com/pkg/brew/proj/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [spatialite-gui](https://www.automicvault.com/pkg/brew/spatialite-gui/) - Shares av.db curated category or tags: cli, data, geospatial, gis, spatialite.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [geoserver](https://www.automicvault.com/pkg/brew/geoserver/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [h3](https://www.automicvault.com/pkg/brew/h3/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [libgeotiff](https://www.automicvault.com/pkg/brew/libgeotiff/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [librasterlite2](https://www.automicvault.com/pkg/brew/librasterlite2/) - Shares av.db curated category or tags: cli, data, geospatial, spatialite.
- [mapnik](https://www.automicvault.com/pkg/brew/mapnik/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [mapproxy](https://www.automicvault.com/pkg/brew/mapproxy/) - Shares av.db curated category or tags: cli, data, geospatial, gis.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- 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
