The easiest way to obtain GNU Modula-2 is to install Debian GNU/Linux Bullseye and install the prebuilt packages.
If you require Debian Buster then you can use the following unofficial packages. You will need to add repository descriptions to your /etc/apt/sources.list file.
# # GNU Modula-2 repo # deb http://floppsie.comp.glam.ac.uk/debian/ buster main deb-src http://floppsie.comp.glam.ac.uk/debian/ buster main
Now in a command line terminal type:
$ sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 29109908987D24D5 $ sudo gpg --export --armor 29109908987D24D5 | sudo apt-key add - $ sudo apt update $ sudo apt install gm2-doc gm2
As a normal user you can obtain the source code via:
$ apt-get source gm2