Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt 安装 nspr

查看 nspr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nspr

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nspr

MacPorts ports tree · devel/nspr/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nspr

Alpine Linux edge package indexes · nspr · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install nspr

Fedora Rawhide package metadata · nspr · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nspr

nixpkgs package indexes · pkgs/by-name/ns/nspr/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S nspr

Arch Linux sync databases · nspr · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libnspr4

Debian stable package indexes · libnspr4 · 来源: deb.debian.org

概览

软件包摘要

Platform-neutral API for system-level and libc-like functions

命令和别名

  • nspr-config

历史

项目历史与用法

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.

时间线

  • 1996: the NSPR20 second-generation effort began, rebuilding the original Java-porting portability layer into a broader runtime API.
  • July 1, 2026: Homebrew formula analytics listed NSPR 4.39 with large dependency-driven install volume.

Related projects

  • NSS depends on NSPR for cross-platform I/O and threading semantics.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nspr-configcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.39
管理器更新时间2026-05-05
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenspr
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnspr4 2:4.36-1

NetScape Portable Runtime Library

http://www.mozilla.org/projects/nspr/

sudo apt install libnspr4
  • Section: libs
  • Architecture: amd64
  • Source Package: nspr
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nspr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnspr4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libnspr4-dev 2:4.36-1

Development files for the NetScape Portable Runtime library

http://www.mozilla.org/projects/nspr/

sudo apt install libnspr4-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nspr
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nspr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnspr4-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nspr

nix profile install nixpkgs#nspr
  • normalized package name match
  • 匹配方式:Nspr
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ns/nspr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnspr4 2:4.35-1.1build1

NetScape Portable Runtime Library

http://www.mozilla.org/projects/nspr/

sudo apt install libnspr4
  • Section: libs
  • Architecture: amd64
  • Source Package: nspr
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nspr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnspr4 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libnspr4-dev 2:4.35-1.1build1

Development files for the NetScape Portable Runtime library

http://www.mozilla.org/projects/nspr/

sudo apt install libnspr4-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nspr
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nspr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnspr4-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

nspr 4.38.2-r0

Netscape Portable Runtime

https://www.mozilla.org/projects/nspr/

sudo apk add nspr
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: nspr
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nspr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nspr from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nspr-dev 4.38.2-r0

Netscape Portable Runtime (development files)

https://www.mozilla.org/projects/nspr/

sudo apk add nspr-dev
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: nspr
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nspr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nspr-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

nspr 4.39-1.fc45

Netscape Portable Runtime

http://www.mozilla.org/projects/nspr/

sudo dnf install nspr
  • License: MPL-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: nss
  • 2 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Nspr
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nspr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

nspr

sudo port install nspr
  • normalized package name match
  • 匹配方式:Nspr
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/nspr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment