macOS
brew install ngspicelocal Homebrew formula metadata
sudo port install ngspiceMacPorts ports tree · science/ngspice/Portfile · 来源: api.github.com
安装
brew install ngspicelocal Homebrew formula metadata
sudo port install ngspiceMacPorts ports tree · science/ngspice/Portfile · 来源: api.github.com
sudo apk add ngspiceAlpine Linux edge package indexes · ngspice · 来源: dl-cdn.alpinelinux.org
sudo apt install ngspiceDebian stable package indexes · ngspice · 来源: deb.debian.org
sudo dnf install ngspiceFedora Rawhide package metadata · ngspice · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ngspicenixpkgs package indexes · ngspice · 来源: raw.githubusercontent.com
sudo pacman -S ngspiceArch Linux sync databases · ngspice · 来源: geo.mirror.pkgbuild.com
sudo zypper install ngspiceopenSUSE Tumbleweed package metadata · ngspice · 来源: download.opensuse.org
choco install ngspiceChocolatey community package catalog · ngspice · 来源: community.chocolatey.org
scoop install extras/ngspiceScoop official bucket manifest trees · bucket/ngspice.json · 来源: api.github.com
概览
Spice circuit simulator
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ngspice | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ngspice |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libngspice0 44.2+ds-1
Spice circuit simulator - library
https://ngspice.sourceforge.io
sudo apt install libngspice0libngspice0-dev 44.2+ds-1
Spice circuit simulator - development files for libngspice
https://ngspice.sourceforge.io
sudo apt install libngspice0-devngspice 44.2+ds-1
Spice circuit simulator
https://ngspice.sourceforge.io
sudo apt install ngspicengspice-dev 44.2+ds-1
Spice circuit simulator - development files for ngspice and tclspice
https://ngspice.sourceforge.io
sudo apt install ngspice-devngspice-doc 44.2+ds-1
Documentation for the NGspice circuit simulator
https://ngspice.sourceforge.io
sudo apt install ngspice-doctclspice 44.2+ds-1
NGSpice library for Tcl
https://ngspice.sourceforge.io
sudo apt install tclspicengspice
nix profile install nixpkgs#ngspicelibngspice0 42+ds-3build1
Spice circuit simulator - library
https://ngspice.sourceforge.io
sudo apt install libngspice0libngspice0-dev 42+ds-3build1
Spice circuit simulator - development files for libngspice
https://ngspice.sourceforge.io
sudo apt install libngspice0-devngspice 42+ds-3build1
Spice circuit simulator
https://ngspice.sourceforge.io
sudo apt install ngspicengspice-dev 42+ds-3build1
Spice circuit simulator - development files for ngspice and tclspice
https://ngspice.sourceforge.io
sudo apt install ngspice-devngspice-doc 42+ds-3build1
Documentation for the NGspice circuit simulator
https://ngspice.sourceforge.io
sudo apt install ngspice-doctclspice 42+ds-3build1
NGSpice library for Tcl
https://ngspice.sourceforge.io
sudo apt install tclspicengspice 46-r0
open source spice simulator for electric and electronic circuits
https://ngspice.sourceforge.net/
sudo apk add ngspicengspice-dev 46-r0
open source spice simulator for electric and electronic circuits (development files)
https://ngspice.sourceforge.net/
sudo apk add ngspice-devngspice-doc 46-r0
open source spice simulator for electric and electronic circuits (documentation)
https://ngspice.sourceforge.net/
sudo apk add ngspice-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.