How to install MonoDevelop on Ubuntu 22.04

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to install MonoDevelop on Ubuntu 22.04.

MonoDevelop is an IDE that you can use to code in different programming languages such as : C#, Java, Python and a lot more.

MonoDevelop supports Linux, Windows and MacOS, so you can use MonoDevelop on different operating systems, which means you can code on MonoDevelop from multiple operating systems.

On Ubuntu 22.04, you can use MonoDevelop to build GTK Applications.

If you are a programmer who creates mostly Windows apps, and want to be able to run your app on Linux too, then MonoDevelop will make it easy for you to port your .NET app on Linux.

Install MonoDevelop on Ubuntu 22.04

Step 1 - Install required packages

To be able to add MonoDevelop's GPG key and download its package from the official repository, you must install the two packages that are required.

apt-transport-https- allows you to download from repositories that use the https protocol

dirmngr - is needed to verify the GPG key

sudo apt install apt-transport-https dirmngr

Step 2 - Add MonoDevelop GPG Key

Once you have installed the required packages that we mentioned above, you can now proceed to to add MonoDevelop GPG key on your system.

To add MonoDevelop GPG Key on your system, run the command below

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Step 3 - Add MonoDevelop Repository

Next, import MonoDevelop repository on your system. To do this, simply run the command below.

The command below, will create the repository file mono-official-vs.list that contains repository information for MonoDevelop, and it will be created on the /sources.list.d/ directory.

This is the repository file that your system will be using to download MonoDevelop packages.

echo "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-vs.list

Step 4 - Update your system

Next, proceed to update your system, in order to activate MonoDevelop's repository that you imported on your system.

To do this, simply run the update command using apt package manager

sudo apt-get update

Step 5 - Install MonoDevelop

Now to install MonoDevelop, you can do so by running the following

sudo apt-get install monodevelop -y

Step 6 - Launch MonoDevelop

There are two ways to launch MonoDevelop. You can launch MonoDevelop via the terminal, or by using GUI.

To launch MonoDevelop via the terminal, run the following

monodevelop

To launch MonoDevelop using GUI, you can do so by launching MonoDevelop from the apps menu.

Uninstall MonoDevelop on Ubuntu 22.04

To uninstall MonoDevelop, run the following command

sudo apt remove monodevelop -y

The command above will only uninstall MonoDevelop from your system, if you want to remove also other files related to MonoDevelop, you can do so by using the --purge option.

sudo apt remove monodevelop --purge -y

Conclusion

In this tutorial, you learned what MonoDevelop is, and the programming languages you can code on with MonoDevelop.

We also explained how to install and uninstall it on your system, step by step by adding its official GPG key and the repository.

You should be able now to use MonoDevelop on your system.