# Install mapserver with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Publish spatial data and interactive mapping apps to the web. Version 8.6.2 via Homebrew; verified 2026-05-09.

## Install

```sh
sudo av install brew:mapserver
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mapserver
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mapserver
```

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

### Linux

- apk (92%):

```sh
sudo apk add mapserver
```

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

- Debian apt (92%):

```sh
sudo apt install cgi-mapserver
```

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

- dnf (92%):

```sh
sudo dnf install mapserver
```

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

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

- zypper (92%):

```sh
sudo zypper install libjavamapscript
```

  Evidence: openSUSE Tumbleweed package metadata: libjavamapscript from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:mapserver
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mapserver>
- **Version:** 8.6.2
- **Source summary:** Publish spatial data and interactive mapping apps to the web
- **Homepage:** <https://mapserver.org/>
- **Repository:** <https://github.com/MapServer/MapServer>
- **Upstream docs:** <https://mapserver.org/documentation.html>
- **License:** MIT
- **Source archive:** <https://download.osgeo.org/mapserver/mapserver-8.6.2.tar.gz>
- **Last updated:** 2026-05-09T14:00:18Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- coshp (cli)
- legend (cli)
- map2img (cli)
- mapserv (cli)
- msencrypt (cli)
- scalebar (cli)
- shptree (cli)
- shptreetst (cli)
- shptreevis (cli)
- sortshp (cli)
- tile4ms (cli)
- coshp (alias)
- legend (alias)
- map2img (alias)
- mapserv (alias)
- msencrypt (alias)
- scalebar (alias)
- shptree (alias)
- shptreetst (alias)
- shptreevis (alias)
- sortshp (alias)
- tile4ms (alias)

## Dependencies

- cairo
- fcgi
- freetype
- gdal
- geos
- giflib
- jpeg-turbo
- libpng
- libpq
- libxml2
- pcre2
- proj
- protobuf-c
- python@3.14

## Build dependencies

- cmake
- pkgconf
- swig

## 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: 8.6.2
- Package-manager updated: 2026-05-09
- Local data: ok
- Upstream repository: https://mapserver.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

MapServer is a long-running open-source web mapping engine for publishing spatial data and interactive mapping applications, administered in the OSGeo ecosystem and configured primarily through .map files.

### Project history

OSGeo's project page says MapServer was originally developed in the mid-1990s at the University of Minnesota and is known as a fast open-source platform for publishing spatial data and interactive mapping applications to the web. The official GitHub repository credits Stephen Lime as the original author and notes major NASA funding through cooperative agreements with the University of Minnesota Department of Forest Resources.

MapServer predates many modern web-map stacks. It began as a C-based CGI-era map engine and grew into a standards-heavy server that can publish raster and vector data through OGC protocols. OSGeo lists support for GDAL/OGR data access, PROJ projections, WMS, WFS, WCS, SOS, GML, GeoJSON, KML, SLD, and related web mapping standards.

The current GitHub repository was created in April 2012, reflecting migration of an older project into GitHub-hosted development rather than the beginning of the software itself. Releases in the 8.6 line were still being published in 2025 and 2026, showing unusually long continuity for a web mapping engine.

### Adoption history

MapServer's adoption is institutional and infrastructure-oriented: public agencies, universities, and GIS teams use it to publish spatial services rather than to run a desktop UI. OSGeo says it is supported by a diverse group of organizations and administered by the MapServer Project Steering Committee.

The input package metadata lists MapServer packages across Homebrew, Debian, Ubuntu, Fedora, Alpine, MacPorts, Nix, and openSUSE-style packaging. That broad packaging footprint is typical for mature GIS infrastructure with native dependencies and server deployment needs.

### How it is used

Users configure MapServer with mapfiles, conventionally named with a .map extension, then run tools such as mapserv, map2img, shp utilities, legend, scalebar, and related helpers. OSGeo's feature list specifically notes that MapServer is easily configured through .map files.

Package users care about both the CGI/server binary and the helper utilities. mapserv is the recognizable runtime, but tools such as map2img and shptree make it possible to test rendering and prepare data from the command line.

### Why package nerds care

MapServer is package-nerd important because it is old, native, standards-heavy GIS infrastructure that still ships. It pulls together C, GDAL/OGR, PROJ, image libraries, optional scripting environments, and web-server deployment conventions.

It is also historically important as one of the classic open-source web mapping engines, surviving the transition from CGI map servers to modern OGC and tile-oriented web GIS stacks.

### Timeline

- Mid-1990s: Project originated at the University of Minnesota.
- 1990s: NASA funding supported development through University of Minnesota forestry-related work.
- 2012: Current GitHub repository created.
- 2025: MapServer 8.6.0 released.
- 2026: MapServer 8.6.4 released.

### Related projects

- MapCache is listed by OSGeo as a MapServer sub-project for tile caching.
- GDAL/OGR and PROJ are central supporting geospatial libraries.
- GeoServer, MapGuide Open Source, and deegree are listed by OSGeo as similar web mapping projects.

### Sources

- <https://api.github.com/repos/MapServer/MapServer>
- <https://api.github.com/repos/MapServer/MapServer/releases?per_page=5>
- <https://github.com/MapServer/MapServer>
- <https://www.osgeo.org/projects/mapserver/>
- source_facts.executables
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for mapserver. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: *.map
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mapserver
- **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 - cgi-mapserver - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: cgi-mapserver from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CGI executable for MapServer | https://mapserver.org
- Debian apt - libmapscript-java - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: libmapscript-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Java library for MapServer | https://mapserver.org
- Debian apt - libmapscript-perl - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: libmapscript-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl MapServer module | https://mapserver.org
- Debian apt - libmapserver-dev - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: libmapserver-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Shared library development files for MapServer | https://mapserver.org
- Debian apt - libmapserver2t64 - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: libmapserver2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Shared library for MapServer | https://mapserver.org
- Debian apt - mapserver-bin - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: mapserver-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MapServer utilities | https://mapserver.org
- Debian apt - mapserver-doc - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: mapserver-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for MapServer | https://mapserver.org
- Debian apt - php-mapscript-ng - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: php-mapscript-ng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | PHP MapServer module (SWIG) | https://mapserver.org
- Debian apt - python3-mapscript - 8.4.0-4+deb13u2: normalized package name match | Debian stable package indexes: python3-mapscript from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python library for MapServer | https://mapserver.org
- Nix - mapserver: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mapserver/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cgi-mapserver - 8.0.1-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: cgi-mapserver from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CGI executable for MapServer | https://mapserver.org
- Ubuntu apt - libmapscript-java - 8.0.1-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmapscript-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Java library for MapServer | https://mapserver.org
- Ubuntu apt - libmapscript-perl - 8.0.1-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmapscript-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Perl MapServer module | https://mapserver.org
- Ubuntu apt - libmapserver-dev - 8.0.1-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmapserver-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Shared library development files for MapServer | https://mapserver.org
- Ubuntu apt - libmapserver2t64 - 8.0.1-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmapserver2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Shared library for MapServer | https://mapserver.org
- Ubuntu apt - mapserver-bin - 8.0.1-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: mapserver-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MapServer utilities | https://mapserver.org


## 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.
- [fcgi](https://www.automicvault.com/pkg/brew/fcgi/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - 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.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [swig](https://www.automicvault.com/pkg/brew/swig/) - Build dependency declared by Homebrew.
- [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.
- [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.
- [postgis](https://www.automicvault.com/pkg/brew/postgis/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [shapelib](https://www.automicvault.com/pkg/brew/shapelib/) - Shares av.db curated category or tags: cli, data, geospatial, gis.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
