macOS
brew install nsprlocal Homebrew formula metadata
sudo port install nsprMacPorts ports tree · devel/nspr/Portfile · 来源: api.github.com
安装
brew install nsprlocal Homebrew formula metadata
sudo port install nsprMacPorts ports tree · devel/nspr/Portfile · 来源: api.github.com
sudo apk add nsprAlpine Linux edge package indexes · nspr · 来源: dl-cdn.alpinelinux.org
sudo dnf install nsprFedora Rawhide package metadata · nspr · 来源: dl.fedoraproject.org
nix profile install nixpkgs#nsprnixpkgs package indexes · pkgs/by-name/ns/nspr/package.nix · 来源: api.github.com
sudo pacman -S nsprArch Linux sync databases · nspr · 来源: geo.mirror.pkgbuild.com
sudo apt install libnspr4Debian stable package indexes · libnspr4 · 来源: deb.debian.org
概览
Platform-neutral API for system-level and libc-like functions
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nspr-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://hg.mozilla.org/projects/nspr
安装元数据
| 软件包键 | brew:nspr |
|---|---|
| 版本 | 4.39 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nspr |
| 主页 | https://hg.mozilla.org/projects/nspr |
| 仓库 | https://hg.mozilla.org/projects/nspr |
| 上游文档 | https://firefox-source-docs.mozilla.org/nspr/index.html |
| 许可证 | MPL-2.0 |
| 源码归档 | https://archive.mozilla.org/pub/nspr/releases/v4.39/src/nspr-4.39.tar.gz |
| 最后更新 | 2026-05-05T19:04:27Z |
| Pulse | updated |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 nspr来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.