How To Install gm2-9 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install gm2-9
on Ubuntu 20.04.
What is gm2-9
gm2-9 is:
This is the GNU Modula-2 compiler, which compiles Modula-2 on platforms supported by gcc. It uses the gcc backend to generate optimised code.
Package: gm2-9 Architecture: amd64 Version: 9.3.0-10ubuntu2 Priority: optional Section: universe/devel Source: gcc-9 Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 30062 Provides: gm2, m2-compiler Depends: gcc-9-base (>= 8), g++-9 (>= 8), libgm2-9-dev (= 9.3.0-10ubuntu2), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libgmp10 (>= 2:5.0.1~), libisl22 (>= 0.15), libmpc3, libmpfr6 (>= 3.1.3), libstdc++6 (>= 5), zlib1g (>= 1:1.1.4) Filename: pool/universe/g/gcc-9/gm2-9_9.3.0-10ubuntu2_amd64.deb Size: 7864860 MD5sum: dc5de2a804bf0d22134ec101e77ae9af SHA1: 6a58a8364e7deafc73e09173b70e3ba385f14e83 SHA256: 318386b7db6a91d0fac3b70543f6bbe313cbedb0bcb31b00eaed8aad53762275 Homepage: http://gcc.gnu.org/ Description-en: GNU Modula-2 compiler This is the GNU Modula-2 compiler, which compiles Modula-2 on platforms supported by gcc. It uses the gcc backend to generate optimised code.
There are three methods to install gm2-9
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install gm2-9 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install gm2-9
using apt-get
by running the following command:
sudo apt-get -y install gm2-9
Install gm2-9 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gm2-9
using apt
by running the following command:
sudo apt -y install gm2-9
Install gm2-9 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install gm2-9
using aptitude
by running the following command:
sudo aptitude -y install gm2-9
How To Uninstall gm2-9 on Ubuntu 20.04
To uninstall only the gm2-9
package we can use the following command:
sudo apt-get remove gm2-9
Uninstall gm2-9 And Its Dependencies
To uninstall gm2-9
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove gm2-9
Remove gm2-9 Configurations and Data
To remove gm2-9
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge gm2-9
Remove gm2-9 configuration, data, and all of its dependencies
We can use the following command to remove gm2-9
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gm2-9
References
Summary
In this tutorial we learn how to install gm2-9
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.