# Install mongoose with Homebrew, apt, dnf, MacPorts, Nix

Web server build on top of Libmongoose embedded library. Version 7.22 via Homebrew; verified 2026-06-25. Also installable with debian: sudo apt install mongoose.

## Install

```sh
sudo av install brew:mongoose
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mongoose
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mongoose
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install mongoose
```

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

- dnf (92%):

```sh
sudo dnf install mongoose
```

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

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

## Package facts

- **Package key:** brew:mongoose
- **Package manager:** Homebrew
- **Version:** 7.22
- **Source summary:** Web server build on top of Libmongoose embedded library
- **Homepage:** <https://mongoose.ws/>
- **Repository:** <https://github.com/cesanta/mongoose>
- **Last updated:** 2026-06-25T20:13:26Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- mongoose (alias)

## Install behavior

- Bottle: not available

## Freshness

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

Mongoose is Cesanta's embedded web server and C networking library. Cesanta traces the Mongoose Web Server Library back to development that started in 2004, and says Cesanta Software Ltd. was established in 2013 to continue development and support as the web server matured.

### Project history

The project evolved from a small embeddable web server into a two-file C networking library for production device dashboards. Its homepage and repository emphasize microcontroller and embedded use: TCP/IP, HTTP, WebSocket, MQTT, TLS 1.3, OTA firmware update support, asynchronous DNS, a small runtime footprint, and portability across desktop operating systems and chips from vendors such as STM32, NXP, ESP32, Nordic, TI, Microchip, Infineon, and Renesas.

### How it is used

In package-manager terms, the Homebrew formula installs the standalone mongoose command, but the larger ecosystem role is as source code embedded into firmware and device software. It sits near libraries such as libmicrohttpd, CivetWeb, and lwIP-backed stacks, with Mongoose's niche being a compact C/C++ network layer that can serve web UIs and speak IoT protocols from constrained devices.

### Sources

- <https://formulae.brew.sh/formula/mongoose>
- <https://github.com/cesanta/mongoose>
- <https://mongoose-os.com/about.html>
- <https://mongoose.ws/>
- <https://www.st.com/en/partner-products-and-services/mongoose-web-server-library.html>


## 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 - mongoose - 1:7.10.1+dfsg-1: normalized package name match | Debian stable package indexes: mongoose from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional dummy package for suitesparse-mongoose | http://suitesparse.com
- Nix - mongoose: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mongoose/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mongoose - 1:7.6.1+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mongoose from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional dummy package for suitesparse-mongoose | http://suitesparse.com
- dnf - mongoose - 7.21-3.fc45: normalized package name match | Fedora Rawhide package metadata: mongoose from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Embedded Web Server | https://mongoose.ws/
- dnf - mongoose-devel - 7.21-3.fc45: normalized package name match | Fedora Rawhide package metadata: mongoose-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Header files and development libraries for mongoose | https://mongoose.ws/
- dnf - mongoose-static - 7.21-3.fc45: normalized package name match | Fedora Rawhide package metadata: mongoose-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Static library for mongoose | https://mongoose.ws/
- MacPorts - mongoose: normalized package name match | MacPorts ports tree: www/mongoose/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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