Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 ngspice

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ngspice

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ngspice

MacPorts ports tree · science/ngspice/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

nixpkgs package indexes · ngspice · 来源: raw.githubusercontent.com

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

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

openSUSE zypper已验证 · 92%
sudo zypper install ngspice

openSUSE Tumbleweed package metadata · ngspice · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install ngspice

Chocolatey community package catalog · ngspice · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install extras/ngspice

Scoop official bucket manifest trees · bucket/ngspice.json · 来源: api.github.com

概览

软件包摘要

Spice circuit simulator

命令和别名

  • ngspice

历史

项目历史与用法

ngspice is the open-source continuation of the Berkeley SPICE circuit-simulation lineage. It is a command-line and library-capable simulator for analog, digital, mixed-signal, and mixed-level electronic circuits, with a long release history and broad packaging across Unix-like systems, Windows channels, and EDA workflows.

项目历史

The ngspice manual says the project is an update of Spice3f5, the last Berkeley release of the Spice3 simulator family, developed to add features and fix bugs. The same manual describes the project as assembled from Spice3f5, XSPICE, CIDER, and original ngspice material, with Paolo Nenzi's first manual preface dated March 24, 2001.

The project inherited Spice3 and CIDER from the University of California at Berkeley and XSPICE from Georgia Tech. Its early 2000s 'ng-spice-rework' releases show the transition from cleanup and bug fixing into a simulator with XSPICE mixed-signal support, CIDER mixed-level simulation, model updates, Windows/MINGW support, and broader portability.

Release 46 was distributed in March 2026; the version 46 manual is dated March 31, 2026. The SourceForge download page listed ngspice-46 as the latest release, and Homebrew packaged stable version 46 from SourceForge.

采用历史

ngspice is the significant package in this batch. It is packaged by Homebrew, MacPorts, Debian/Ubuntu, Fedora, Arch, Nix, openSUSE, Chocolatey, Scoop, and Alpine-family repositories in the av.db input. Homebrew analytics on July 1, 2026 reported 2,500 install-on-request events over 365 days, and SourceForge showed weekly downloads for release 46 and old releases.

Its adoption is helped by compatibility rather than novelty. The project advertises SPICE compatibility, support for PSPICE/LTSPICE model parameters and netlists for discrete circuits, HSPICE device libraries from foundry PDKs for integrated circuits, and third-party schematic/simulation front ends. That makes it a common open simulation engine under GUI and scripted EDA workflows.

使用方式

The normal package-nerd use is to install `ngspice`, feed it a SPICE netlist from the command line, run DC, AC, transient, noise, pole-zero, sensitivity, distortion, S-parameter, or mixed-signal analyses, and inspect plots or raw output files. More advanced users build it as a shared library or integrate it through tools such as KiCad, Xschem, Qucs-S, PySpice, or Tcl/Tk-related tooling.

The practical reason people care about the package is that it is the free, scriptable SPICE engine that package managers can ship everywhere. It sits in a lineage older than most package ecosystems, but remains active because open PDKs, Verilog-A/OpenVAF model loading, mixed-signal code models, and simulator-library embedding keep generating new use cases.

时间线

  • {'date': '2000-11-04', 'event': 'ng-spice-rework-13 release listed enhancements and bug fixes.'}
  • {'date': '2001-03-24', 'event': 'Paolo Nenzi dated the first ngspice manual preface.'}
  • {'date': '2004-01-27', 'event': 'ng-spice-rework-15 incorporated XSPICE, CIDER, numparam, model updates, and examples.'}
  • {'date': '2026-03-31', 'event': 'Version 46 manual date.'}

Related projects

  • Berkeley SPICE
  • Spice3f5
  • XSPICE
  • CIDER
  • KiCad
  • Xschem
  • Qucs-S
  • PySpice
  • OpenVAF

安全态势

风险级别:绿色

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 个平台目标。
  • 安装时包含 11 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://ngspice.sourceforge.io/

安装元数据

软件包元数据

软件包键brew:ngspice
版本46
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ngspice
主页https://ngspice.sourceforge.io/
仓库https://sourceforge.net/p/ngspice/ngspice/ci/master/tree
上游文档https://ngspice.sourceforge.io/docs.html
许可证LicenseRef-Homebrew-cannot-represent
源码归档https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/46/ngspice-46.tar.gz
最后更新2026-06-25T13:37:57+02:00
Pulseupdated
依赖fftw, freetype, libice, libngspice, libsm, libx11, libxaw, libxext, libxmu, libxt, readline
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项If you need the graphical plotting functions you need to install X11 with: brew install --cask xquartz

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

libngspice0 44.2+ds-1

Spice circuit simulator - library

https://ngspice.sourceforge.io

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

libngspice0-dev 44.2+ds-1

Spice circuit simulator - development files for libngspice

https://ngspice.sourceforge.io

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

ngspice 44.2+ds-1

Spice circuit simulator

https://ngspice.sourceforge.io

sudo apt install ngspice
  • Section: electronics
  • Architecture: amd64
  • 11 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Ngspice
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ngspice from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ngspice-dev 44.2+ds-1

Spice circuit simulator - development files for ngspice and tclspice

https://ngspice.sourceforge.io

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

ngspice-doc 44.2+ds-1

Documentation for the NGspice circuit simulator

https://ngspice.sourceforge.io

sudo apt install ngspice-doc
  • Section: doc
  • Architecture: all
  • Source Package: ngspice
  • normalized package name match
  • 匹配方式:Ngspice
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ngspice-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

tclspice 44.2+ds-1

NGSpice library for Tcl

https://ngspice.sourceforge.io

sudo apt install tclspice
  • Section: libs
  • Architecture: amd64
  • Source Package: ngspice
  • 9 依赖
  • normalized package name match
  • 匹配方式:Ngspice
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tclspice from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ngspice

nix profile install nixpkgs#ngspice
  • normalized package name match
  • 匹配方式:Ngspice
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ngspice from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

libngspice0 42+ds-3build1

Spice circuit simulator - library

https://ngspice.sourceforge.io

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

libngspice0-dev 42+ds-3build1

Spice circuit simulator - development files for libngspice

https://ngspice.sourceforge.io

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

ngspice 42+ds-3build1

Spice circuit simulator

https://ngspice.sourceforge.io

sudo apt install ngspice
  • Section: universe/electronics
  • Architecture: amd64
  • 11 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Ngspice
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ngspice from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ngspice-dev 42+ds-3build1

Spice circuit simulator - development files for ngspice and tclspice

https://ngspice.sourceforge.io

sudo apt install ngspice-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: ngspice
  • 2 依赖
  • normalized package name match
  • 匹配方式:Ngspice
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ngspice-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ngspice-doc 42+ds-3build1

Documentation for the NGspice circuit simulator

https://ngspice.sourceforge.io

sudo apt install ngspice-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: ngspice
  • normalized package name match
  • 匹配方式:Ngspice
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ngspice-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

tclspice 42+ds-3build1

NGSpice library for Tcl

https://ngspice.sourceforge.io

sudo apt install tclspice
  • Section: universe/electronics
  • Architecture: amd64
  • Source Package: ngspice
  • 9 依赖
  • normalized package name match
  • 匹配方式:Ngspice
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tclspice from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ngspice 46-r0

open source spice simulator for electric and electronic circuits

https://ngspice.sourceforge.net/

sudo apk add ngspice
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ngspice
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ngspice
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ngspice from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ngspice-dev 46-r0

open source spice simulator for electric and electronic circuits (development files)

https://ngspice.sourceforge.net/

sudo apk add ngspice-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ngspice
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ngspice
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ngspice-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ngspice-doc 46-r0

open source spice simulator for electric and electronic circuits (documentation)

https://ngspice.sourceforge.net/

sudo apk add ngspice-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ngspice
  • normalized package name match
  • 匹配方式:Ngspice
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ngspice-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 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