macOS
brew install nsprlocal Homebrew formula metadata
sudo port install nsprMacPorts ports tree · devel/nspr/Portfile · source: api.github.com
brew
Platform-neutral API for system-level and libc-like functions. Version 4.39 via Homebrew; verified 2026-05-05.
install
brew install nsprlocal Homebrew formula metadata
sudo port install nsprMacPorts ports tree · devel/nspr/Portfile · source: api.github.com
sudo apk add nsprAlpine Linux edge package indexes · nspr · source: dl-cdn.alpinelinux.org
sudo apt install libnspr4Debian stable package indexes · libnspr4 · source: deb.debian.org
sudo dnf install nsprFedora Rawhide package metadata · nspr · source: dl.fedoraproject.org
nix profile install nixpkgs#nsprnixpkgs package indexes · pkgs/by-name/ns/nspr/package.nix · source: api.github.com
sudo pacman -S nsprArch Linux sync databases · nspr · source: geo.mirror.pkgbuild.com
overview
Platform-neutral API for system-level and libc-like functions
history
NSPR, the Netscape Portable Runtime, is a C portability layer from the Netscape/Mozilla lineage. It abstracts non-GUI operating-system services such as threads, synchronization, file and network I/O, time, memory allocation, and shared-library loading so Mozilla-era code can run across many Unix, Windows, and macOS targets.
Mozilla's NSPR history says the first generation was conceived to satisfy Java VM porting requirements, while the second-generation NSPR20 effort started in 1996 and expanded the idea into a general portability layer for C and C++ clients. The same page describes NSPR as functionally complete and in sustaining engineering, which matches its role as old, boring infrastructure rather than a fast-moving application framework.
Mozilla's documentation says NSPR is used by Mozilla clients plus many Red Hat and Oracle server applications. Its most visible downstream role is as the portability substrate for NSS, so package managers often install it indirectly through security libraries rather than because an end user asked for `nspr-config` by name.
On July 1, 2026, Homebrew's formula page listed NSPR 4.39 and reported 273,494 installs in its 365-day analytics window, but only 3,006 installs on request. That gap is a good package-nerd signal: NSPR is mostly dependency plumbing.
Developers use NSPR directly when maintaining old Mozilla-family C/C++ code or software that already expects NSPR APIs. Practically, package users see headers, libraries, and `nspr-config`; modern greenfield projects usually choose native OS APIs, pthreads, or higher-level runtimes unless they need compatibility with NSS/Mozilla code.
NSPR matters because it is one of the tiny base layers beneath a surprising amount of browser and PKI software. It is not fashionable infrastructure, but build failures here ripple into NSS and packages that consume NSS.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
nspr-config | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://hg.mozilla.org/projects/nspr
install metadata
| Package key | brew:nspr |
|---|---|
| Version | 4.39 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/nspr |
| Homepage | https://hg.mozilla.org/projects/nspr |
| Repository | https://hg.mozilla.org/projects/nspr |
| Upstream docs | https://firefox-source-docs.mozilla.org/nspr/index.html |
| License | MPL-2.0 |
| Source archive | https://archive.mozilla.org/pub/nspr/releases/v4.39/src/nspr-4.39.tar.gz |
| Last updated | 2026-05-05T19:04:27Z |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nspr |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libnspr4 2:4.36-1
NetScape Portable Runtime Library
http://www.mozilla.org/projects/nspr/
sudo apt install libnspr4libnspr4-dev 2:4.36-1
Development files for the NetScape Portable Runtime library
http://www.mozilla.org/projects/nspr/
sudo apt install libnspr4-devnspr
nix profile install nixpkgs#nsprlibnspr4 2:4.35-1.1build1
NetScape Portable Runtime Library
http://www.mozilla.org/projects/nspr/
sudo apt install libnspr4libnspr4-dev 2:4.35-1.1build1
Development files for the NetScape Portable Runtime library
http://www.mozilla.org/projects/nspr/
sudo apt install libnspr4-devnspr 4.38.2-r0
Netscape Portable Runtime
https://www.mozilla.org/projects/nspr/
sudo apk add nsprnspr-dev 4.38.2-r0
Netscape Portable Runtime (development files)
https://www.mozilla.org/projects/nspr/
sudo apk add nspr-devnspr 4.39-1.fc45
Netscape Portable Runtime
http://www.mozilla.org/projects/nspr/
sudo dnf install nsprnspr 4.39-1
Netscape Portable Runtime
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR
sudo pacman -S nsprnspr
sudo port install nsprsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.