Happy math hacking.
Using Homebrew: If you are a developer, Homebrew is the cleanest way. Open your terminal and type:brew install --cask sagemath install sage
sudo apt update sudo apt install sagemath Happy math hacking
Alternative: Use cocalc (see bonus below) if you want zero local installation. install sage
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.