swipl

SWI-Prolog - A comprehensive free Prolog environment. More information: <https://www.swi-prolog.org/>.

Install

All systems
curl cmd.cat/swipl.sh
Debian Debian
apt-get install swi-prolog-nox
Ubuntu
apt-get install swi-prolog-nox
Arch Arch Linux
pacman -S swi-prolog
image/svg+xml Kali Linux
apt-get install swi-prolog-nox
CentOS
yum install pl
Fedora
dnf install pl
Windows (WSL2)
sudo apt-get update sudo apt-get install swi-prolog-nox
OS X
brew install swi-prolog
Raspbian
apt-get install swi-prolog-nox

SWI-Prolog - A comprehensive free Prolog environment. More information: <https://www.swi-prolog.org/>.

  • Start an interactive session:
    swipl
  • Execute a command without showing any output:
    swipl --quiet -t "command"
  • Execute a script:
    swipl path/to/file.pl
  • Print all shell configuration variables:
    swipl --dump-runtime-variables
  • Print the version:
    swipl --version

© tl;dr; authors and contributors