-
Notifications
You must be signed in to change notification settings - Fork 236
Installing Macaulay2 in Linux
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
Unless you are running Debian unstable or testing, 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.
Macaulay2 packages are available for all supported releases of Ubuntu (currently 18.04, 20.04, 22.04, 24.04, and 24.10). 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
The instructions are slightly different depending on which version of Debian you are using.
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 install debian-keyring
sudo apt update
sudo apt install macaulay2
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 install debian-keyring
sudo apt update
sudo apt install macaulay2
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 as the Macaulay2 language code and documentation), and a package containing the architecture-dependent files like the M2 executable.
Distribution | Package |
---|---|
Common (required for all distributions) | Macaulay2-1.24.11-1.common.rpm |
Fedora 40 | Macaulay2-1.24.11-1.x86_64-Linux-Fedora-40.rpm |
Fedora 41 | Macaulay2-1.24.11-1.x86_64-Linux-Fedora-41.rpm |
Rocky Linux 8.9 | Macaulay2-1.24.11-1.x86_64-Linux-RockyLinux-8.9.rpm |
Rocky Linux 9.3 | Macaulay2-1.24.11-1.x86_64-Linux-RockyLinux-9.3.rpm |
Then, after downloading these two files, run the following:
sudo dnf install Macaulay2-*.rpm
For Red Hat Enterprise Linux and compatible distributions like Rocky Linux and AlmaLinux, you may have to enable the EPEL repository to obtain some dependencies.
Macaulay2 is also available in the official Fedora repositories. The version may be slightly out of date.
sudo dnf install Macaulay2
Macaulay2 bottles are available for x86_64 Linux systems through Homebrew. Follow the instructions on this page, or simply enter the following to install the Macaulay2 tap and bottle:
brew install Macaulay2/tap/M2
Homepage | Projects | Packages | Documentation | Events | Google Group