Skip to content

Installing Macaulay2 in Linux

Doug Torrance edited this page Jun 8, 2024 · 14 revisions

APT-based distributions (Debian, Ubuntu, etc.)

Debian and its derivatives use the apt package manager. Macaulay2 has been available in the official Debian repositories since 2020, so you may install it using

sudo apt install macaulay2

However, this will likely be a slightly out-of-date version. The Macaulay2 developers host packages for the latest version of Macaulay2 in third-party repositories.

Ubuntu

Macaulay2 packages are available for all supported releases of Ubuntu (currently 18.04, 20.04, 22.04, 23.10, and 24.04). Run the following:

sudo add-apt-repository ppa:macaulay2/macaulay2
sudo apt install macaulay2

Alternatively, if you would like to try out the latest development version of Macaulay2, run the following:

sudo add-apt-repository ppa:profzoom/macaulay2
sudo apt install macaulay2

Debian

The instructions are slightly different depending on which version of Debian you are using.

Debian stable (Debian 12 "bookworm")

As root, add the following to /etc/apt/sources.list:

deb [signed-by=/usr/share/keyrings/debian-keyring.gpg] https://people.debian.org/~dtorrance/debian bookworm/

Then run:

sudo apt update
sudo apt install macaulay2

Debian oldstable (Debian 11 "bullseye")

As root, add the following to /etc/apt/sources.list:

deb [signed-by=/usr/share/keyrings/debian-maintainers.gpg] https://people.debian.org/~dtorrance/debian bullseye/

Then run:

sudo apt update
sudo apt install macaulay2

RPM-based distributions

Packages for RPM-based distributions are hosted on the Macaulay2 website. You should download and install two packages: a "common" package containing the architecture-independent files (such that the Macaulay2 language code and documentation), and a package containing the architecture-dependent files like the M2 executable.

Clone this wiki locally