Ubuntu
To set up the Macaulay2 repository and install Macaulay2, paste the following into a terminal:
/bin/bash -c "$(curl -fsSL https://macaulay2.com/Repositories/install-deb.sh)"
Alternatively, see the wiki for instructions on installing Macaulay2 in Ubuntu.