# Install librasterlite2 with Homebrew, apk, apt, dnf, MacPorts, Nix

Library to store and retrieve huge raster coverages. Version 1.1.0-beta1 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:librasterlite2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install librasterlite2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install librasterlite2
```

  Evidence: MacPorts ports tree: databases/librasterlite2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add librasterlite2
```

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

- Debian apt (92%):

```sh
sudo apt install librasterlite2-1
```

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

- dnf (92%):

```sh
sudo dnf install librasterlite2
```

  Evidence: Fedora Rawhide package metadata: librasterlite2 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#librasterlite2
```

  Evidence: nixpkgs package indexes: pkgs/by-name/li/librasterlite2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:librasterlite2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/librasterlite2>
- **Version:** 1.1.0-beta1
- **Source summary:** Library to store and retrieve huge raster coverages
- **Homepage:** <https://www.gaia-gis.it/fossil/librasterlite2/index>
- **Repository:** <https://www.gaia-gis.it/fossil/librasterlite2/index>
- **Upstream docs:** <https://www.gaia-gis.it/fossil/librasterlite2/index>
- **License:** MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- **Source archive:** <https://www.gaia-gis.it/gaia-sins/librasterlite2-sources/librasterlite2-1.1.0-beta1.tar.gz>
- **Last updated:** 2026-06-22T14:05:21-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- rl2sniff (cli)
- rl2tool (cli)
- wmslite (cli)
- rl2sniff (alias)
- rl2tool (alias)
- wmslite (alias)

## Dependencies

- cairo
- fontconfig
- freetype
- freexl
- geos
- giflib
- jpeg-turbo
- libgeotiff
- libpng
- librttopo
- libspatialite
- libtiff
- libxml2
- lz4
- minizip
- openjpeg
- pixman
- proj
- sqlite
- webp
- xz
- zstd

## Build dependencies

- pkgconf

## Uses from macOS

- curl

## 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: 1.1.0-beta1
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://www.gaia-gis.it/fossil/librasterlite2/index
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

librasterlite2 is a Gaia-SINS geospatial library for storing and retrieving large raster coverages inside SpatiaLite databases.

### Project history

The Gaia-GIS project describes librasterlite2 as a new project intended to replace the older librasterlite while sharing only the same application area. It keeps raster coverages in a SpatiaLite DBMS and ships tools such as rl2tool and wmslite for administration and WMS-oriented access.

RasterLite2 1.0.0 development was funded by Tuscany Region's territorial and environmental information system work, linking the package to regional GIS infrastructure rather than to a generic image-processing library. The project is maintained in a Fossil repository alongside other Gaia-GIS components.

### Adoption history

librasterlite2 spread mainly through geospatial packaging stacks where SpatiaLite, GDAL-adjacent tooling, and desktop GIS utilities are packaged together. The input package-manager metadata lists Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, and Ubuntu, which matches its role as infrastructure for GIS users rather than a standalone end-user application.

### How it is used

Users work with the package through the C library and helper programs such as rl2tool, rl2sniff, and wmslite. The official tutorials show RasterLite2 databases as full SpatiaLite database files and demonstrate raster coverage creation, import, pyramids, styling, and WMS access.

### Why package nerds care

librasterlite2 is package-nerd significant because it is a specialized spatial database extension that turns heavyweight raster management into normal SQLite/SpatiaLite files. It is also a good example of a small upstream ecosystem using Fossil, tri-licensed libraries, and separate GPL tools.

### Timeline

- 2013: The older librasterlite page marked librasterlite as obsolete and directed users to librasterlite2.
- 2014: RasterLite2 tutorials and project artifacts documented 1.0.0 release-candidate workflows.
- 2017: The Fossil timeline records API changes for reading coverages from attached databases and MapView/spatialite_gui support.
- 2018: Development resumed for the 1.1.0-beta0 cycle.
- 2020: The project page listed 1.1.0-beta1 released on 2020-08-24.
- 2023: The Fossil timeline records trusted_schema and SQLITE_INNOCUOUS support work.

### Related projects

- The project is tightly related to libspatialite, spatialite_gui, SQLite, GDAL-style raster workflows, the superseded librasterlite project, and Gaia-SINS geospatial tooling.

### Sources

- <https://formulae.brew.sh/formula/librasterlite2>
- <https://www.gaia-gis.it/fossil/librasterlite/index>
- <https://www.gaia-gis.it/fossil/librasterlite2/index>
- <https://www.gaia-gis.it/fossil/librasterlite2/timeline>
- <https://www.gaia-gis.it/fossil/librasterlite2/wiki?name=planetEarth>
- <https://www.gaia-gis.it/fossil/libspatialite/index>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** librasterlite2
- **Version Scheme:** 0
- **Revision:** 5
- **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 - librasterlite2-1 - 1.1.0~beta1-4: normalized package name match | Debian stable package indexes: librasterlite2-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for huge raster coverages using a SpatiaLite DBMS | https://www.gaia-gis.it/fossil/librasterlite2/
- Debian apt - librasterlite2-dev - 1.1.0~beta1-4: normalized package name match | Debian stable package indexes: librasterlite2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for huge raster coverages using a SpatiaLite DBMS - headers | https://www.gaia-gis.it/fossil/librasterlite2/
- Debian apt - libsqlite3-mod-rasterlite2 - 1.1.0~beta1-4: normalized package name match | Debian stable package indexes: libsqlite3-mod-rasterlite2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SQLite 3 module for huge raster coverages | https://www.gaia-gis.it/fossil/librasterlite2/
- Debian apt - rasterlite2-bin - 1.1.0~beta1-4: normalized package name match | Debian stable package indexes: rasterlite2-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command line tools for librasterlite2 | https://www.gaia-gis.it/fossil/librasterlite2/
- Nix - librasterlite2: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/librasterlite2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - librasterlite2-1 - 1.1.0~beta1-3build5: normalized package name match | Ubuntu 24.04 LTS package indexes: librasterlite2-1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for huge raster coverages using a SpatiaLite DBMS | https://www.gaia-gis.it/fossil/librasterlite2/
- Ubuntu apt - librasterlite2-dev - 1.1.0~beta1-3build5: normalized package name match | Ubuntu 24.04 LTS package indexes: librasterlite2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for huge raster coverages using a SpatiaLite DBMS - headers | https://www.gaia-gis.it/fossil/librasterlite2/
- Ubuntu apt - libsqlite3-mod-rasterlite2 - 1.1.0~beta1-3build5: normalized package name match | Ubuntu 24.04 LTS package indexes: libsqlite3-mod-rasterlite2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SQLite 3 module for huge raster coverages | https://www.gaia-gis.it/fossil/librasterlite2/
- Ubuntu apt - rasterlite2-bin - 1.1.0~beta1-3build5: normalized package name match | Ubuntu 24.04 LTS package indexes: rasterlite2-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command line tools for librasterlite2 | https://www.gaia-gis.it/fossil/librasterlite2/
- apk - librasterlite2 - 1.1.0_beta1-r7: normalized package name match | Alpine Linux edge package indexes: librasterlite2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for storing and retrieving huge raster coverages using a SpatiaLite DBMS | https://www.gaia-gis.it/fossil/librasterlite2/index
- apk - librasterlite2-dev - 1.1.0_beta1-r7: normalized package name match | Alpine Linux edge package indexes: librasterlite2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for storing and retrieving huge raster coverages using a SpatiaLite DBMS (development files) | https://www.gaia-gis.it/fossil/librasterlite2/index
- dnf - librasterlite2 - 1.1.0-0.21.beta1.fc44: normalized package name match | Fedora Rawhide package metadata: librasterlite2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Stores and retrieves huge raster coverages using a SpatiaLite DBMS | https://www.gaia-gis.it/fossil/librasterlite2
- dnf - librasterlite2-devel - 1.1.0-0.21.beta1.fc44: normalized package name match | Fedora Rawhide package metadata: librasterlite2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development libraries and headers for librasterlite2 | https://www.gaia-gis.it/fossil/librasterlite2
- dnf - librasterlite2-tools - 1.1.0-0.21.beta1.fc44: normalized package name match | Fedora Rawhide package metadata: librasterlite2-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tools for librasterlite2 | https://www.gaia-gis.it/fossil/librasterlite2
- MacPorts - librasterlite2: normalized package name match | MacPorts ports tree: databases/librasterlite2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [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.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [cairo](https://www.automicvault.com/pkg/brew/cairo/) - Runtime dependency declared by Homebrew.
- [fontconfig](https://www.automicvault.com/pkg/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [geos](https://www.automicvault.com/pkg/brew/geos/) - Runtime dependency declared by Homebrew.
- [giflib](https://www.automicvault.com/pkg/brew/giflib/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libgeotiff](https://www.automicvault.com/pkg/brew/libgeotiff/) - 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/) - Popular package that depends on this formula.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Shares av.db curated category or tags: cli, data, geospatial, raster.
- [spatialite-tools](https://www.automicvault.com/pkg/brew/spatialite-tools/) - Shares av.db curated category or tags: cli, data, geospatial, spatialite.
- [geoserver](https://www.automicvault.com/pkg/brew/geoserver/) - Shares av.db curated category or tags: cli, data, geospatial.
- [gpsbabel](https://www.automicvault.com/pkg/brew/gpsbabel/) - Shares av.db curated category or tags: cli, data, geospatial.
- [h3](https://www.automicvault.com/pkg/brew/h3/) - Shares av.db curated category or tags: cli, data, geospatial.
- [imposm3](https://www.automicvault.com/pkg/brew/imposm3/) - Shares av.db curated category or tags: cli, data, geospatial.

## Combined YAML source

View the package source record on GitHub. [combined/librasterlite2.yml](https://github.com/automic-vault/db/blob/main/combined/librasterlite2.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
