Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, winget, zypper, scoop 安装 swi-prolog

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install swi-prolog

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install swi-prolog

MacPorts ports tree · lang/swi-prolog/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add swi-prolog

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

Debian apt已验证 · 92%
sudo apt install swi-prolog

Debian stable package indexes · swi-prolog · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install swi-prolog

Fedora Rawhide package metadata · swi-prolog · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#swi-prolog

nixpkgs package indexes · pkgs/by-name/sw/swi-prolog/package.nix · 来源: api.github.com

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

Arch Linux sync databases · swi-prolog · 来源: geo.mirror.pkgbuild.com

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

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

Windows

Chocolatey已验证 · 92%
choco install SWI-Prolog

Chocolatey community package catalog · SWI-Prolog · 来源: community.chocolatey.org

Windows Package Manager已验证 · 92%
winget install --id SWI-Prolog.SWI-Prolog -e

Windows Package Manager source index · SWI-Prolog.SWI-Prolog · 来源: cdn.winget.microsoft.com

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

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

概览

软件包摘要

ISO/Edinburgh-style Prolog interpreter

命令和别名

  • swipl
  • swipl-ld
  • swipl-win

历史

项目历史与用法

SWI-Prolog is a long-running open-source implementation of Prolog, packaged for Unix-like systems, Windows package managers, and language-specific workflows. For CLI users it is best known through the swipl executable, an interactive top level, compiler/runtime, and development environment for logic-programming projects.

项目历史

The official manual says SWI-Prolog began in 1986 to support recursive interaction between Prolog and C, at a time when Prolog systems were less integrated with their host environments. The project's own site summarizes its public history as starting in 1987 and being driven by real-world application needs.

采用历史

SWI-Prolog's documentation describes it as widely used in education and research, and also in 24x7 commercial server processes. The project reports over a million downloads and notes that applications range from student assignments to commercial codebases with more than one million lines of Prolog.

使用方式

The normal Unix entry point is swipl. Users start an interactive session, load Prolog source files, run queries, build applications, install packs, or use the runtime in larger systems through C, C++, Java, Python, web, RDF, and other interfaces documented by the project.

为什么软件包爱好者会关心

SWI-Prolog matters to package maintainers because it is both a language runtime and a batteries-included development environment. It has native libraries, optional packages, documentation generation, a pack ecosystem, source builds with submodules, stable and development release tracks, and enough platform reach that packaging it is a real integration exercise rather than a simple single-binary install.

时间线

  • 1986: Implementation history begins with the need for recursive Prolog and C interaction.
  • 1987: Project site describes SWI-Prolog as starting in this year.
  • 2007: SWI-Prolog and YAP establish a compatibility framework for portable Prolog programs.
  • 2014: Primary git repository moved to GitHub.
  • 2026: Official manual describes SWI-Prolog 10.1.x and ongoing stable/development release tracks.

Related projects

  • YAP is named in SWI-Prolog publications around Prolog portability.
  • XPCE is historically tied to SWI-Prolog's graphical environment.
  • SWISH provides a browser-based SWI-Prolog environment.
  • The SWI-Prolog pack system is the project's add-on packaging ecosystem.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:interpreter

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 7 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
swiplcli全局可执行文件
swipl-ldcli全局可执行文件
swipl-wincli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.swi-prolog.org/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://www.swi-prolog.org/none 置信度

安装元数据

软件包元数据

软件包键brew:swi-prolog
版本10.0.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/swi-prolog
主页https://www.swi-prolog.org/
仓库https://github.com/SWI-Prolog/swipl-devel
上游文档https://github.com/SWI-Prolog/swipl-devel#readme
许可证BSD-2-Clause
源码归档https://www.swi-prolog.org/download/stable/src/swipl-10.0.2.tar.gz
依赖berkeley-db@5, gmp, libarchive, libyaml, openssl@3, pcre2, unixodbc
构建依赖cmake, pkgconf
macOS 提供的库libedit, libxcrypt, ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

swi-prolog 9.2.9+dfsg-1+b1

ISO/Edinburgh-style Prolog interpreter

https://www.swi-prolog.org

sudo apt install swi-prolog
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 3 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-bdb 9.2.9+dfsg-1+b1

Berkeley DB interface for SWI-Prolog

https://www.swi-prolog.org

sudo apt install swi-prolog-bdb
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 3 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-bdb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-core 9.2.9+dfsg-1+b1

ISO/Edinburgh-style Prolog interpreter - core system

https://www.swi-prolog.org

sudo apt install swi-prolog-core
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 5 依赖
  • 7 提供
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-core from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-core-packages 9.2.9+dfsg-1+b1

ISO/Edinburgh-style Prolog interpreter - core packages

https://www.swi-prolog.org

sudo apt install swi-prolog-core-packages
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 7 依赖
  • 6 可选依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-core-packages from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-doc 9.2.9+dfsg-1

documentation and examples for SWI-Prolog

https://www.swi-prolog.org

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

swi-prolog-full 9.2.9+dfsg-1+b1

ISO/Edinburgh-style Prolog interpreter - full suit

https://www.swi-prolog.org

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

swi-prolog-java 9.2.9+dfsg-1+b1

Bidirectional interface between SWI-Prolog and Java

https://www.swi-prolog.org

sudo apt install swi-prolog-java
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 5 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-nox 9.2.9+dfsg-1+b1

ISO/Edinburgh-style Prolog interpreter - without X support

https://www.swi-prolog.org

sudo apt install swi-prolog-nox
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 11 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-odbc 9.2.9+dfsg-1+b1

ODBC library for SWI-Prolog

https://www.swi-prolog.org

sudo apt install swi-prolog-odbc
  • Section: interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 3 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-odbc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-test 9.2.9+dfsg-1

tests and checks for SWI-Prolog

https://www.swi-prolog.org

sudo apt install swi-prolog-test
  • Section: interpreters
  • Architecture: all
  • Source Package: swi-prolog
  • 1 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Debian stable package indexes · deb.debian.org · Debian stable package indexes: swi-prolog-test from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

swi-prolog-x 9.2.9+dfsg-1+b1

User interface library for SWI-Prolog - with X support

https://www.swi-prolog.org

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

swi-prolog

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

swi-prolog 9.0.4+dfsg-3.1ubuntu4

ISO/Edinburgh-style Prolog interpreter

https://www.swi-prolog.org

sudo apt install swi-prolog
  • Section: universe/interpreters
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: swi-prolog from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

swi-prolog-bdb 9.0.4+dfsg-3.1ubuntu4

Berkeley DB interface for SWI-Prolog

https://www.swi-prolog.org

sudo apt install swi-prolog-bdb
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 3 依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: swi-prolog-bdb from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

swi-prolog-core 9.0.4+dfsg-3.1ubuntu4

ISO/Edinburgh-style Prolog interpreter - core system

https://www.swi-prolog.org

sudo apt install swi-prolog-core
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 4 依赖
  • 7 提供
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: swi-prolog-core from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

swi-prolog-core-packages 9.0.4+dfsg-3.1ubuntu4

ISO/Edinburgh-style Prolog interpreter - core packages

https://www.swi-prolog.org

sudo apt install swi-prolog-core-packages
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: swi-prolog
  • 7 依赖
  • 6 可选依赖
  • normalized package name match
  • 匹配方式:Swi Prolog
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: swi-prolog-core-packages from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.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