The GNU Modula-2 front end to GCC

How to obtain Debian packages

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 buster main
deb-src buster main

Now in a command line terminal type:

$ sudo gpg --import 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