First, install Homebrew if you haven’t. Then:
sudo apt update sudo apt install sagemath After it finishes, type sage in your terminal.
If you’ve been searching for a powerful open-source alternative to Magma, Maple, or Mathematica, you’ve probably heard the whispers: “Try Sage.”
brew update brew install sagemath This compiles a few dependencies but is surprisingly fast on Apple Silicon (M1/M2/M3). Once done, launch with:
sudo pacman -S sagemath Pro tip: The repo version is sometimes a few months old. For the absolute latest, use the sage package from nixpkgs or download the binary from the official site. Skip the official .dmg —it’s often outdated. Use Homebrew.