Debian

How to Install Mono on Debian 10

Mono is a very popular, free, and open-source platform sponsored by Microsoft’s .Net Framework is used to develop applications based on ECMA/ISO standards. Developers used this tool to make the most efficacious and authentic applications. These applications are free from the restriction of limited platforms but focused on Cross platforms. A better understanding of mono depends on the basic operational encounter of Debian because Mono standards implement on both C# programming and common language Runtime.So, without any trouble with this article’s guidance, you will be able to install mono on Debian 10.

Installation of Mono

To install Mono on Debian 10, you just need to follow the following 5 steps and have Mono installed on your system.

  • Install the package
  • Import GPG repository key
  • Addition of Mono Repository
  • Installation of mono
  • Verification of Mono Version

Step:1 Install the package

First of all, we have to install some necessary packages on Debian, but before installing the essential packages, it is better to update and upgrade the system’s packages.

To update the APT cache repository, type the command given below:

$ sudo apt update

After updating the APT repository cache, upgrade the pre-installed packages as well using the command given below:

$ sudo apt upgrade

Alight! Once you have updated and upgraded the system, you need to install some essential packages by using the command given below:

$ sudo apt install software-properties-common dirmngr gnupg apt-transport-https ca-certificates

After a few moments, the essential required packages will be downloaded. The Debian system will be ready for importing and adding the GPG repository keys of Mono in the Debian system’s sources list.

Step:2 Import GPG Repository Key

After adding the package repository, you have to import the GPG repository key from the official website of Mono using the command given below:

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

Once the repository’s key is imported, add it into the sources list of the Debian 10 Operating system.

Step:3 Addition of Mono Repository

Let’s add mono repository to our system:

$ sudo sh -c 'echo "deb https://download.mono-project.com/repo/debian stable-buster main" > /etc/apt/sources.list.d/mono-official-stable.list'

Step:4 Installation of Mono

As all the dependencies have been installed and the APT repository is updated, now to install the Mono, we just have to update the packages list once again, and we can do so by typing the command given below in the terminal:

$ sudo apt update

And now, we are all set to run the installation command of mono-complete. Simply type the command given below in the terminal of Debian 10, and the installation will begin:

$ sudo apt install mono-complete

The mono-complete package installation will start when you type ‘Y’ and hit ‘Enter‘ when prompted to ask for the additional packages to install that you will need, like: Runtime Development Tools and Libraries.

Step:5 Verification of Mono Version:

Now after following all the above steps, we can verify the installation of the mono version by typing the below-given command in the terminal window:

$ mono --version

The above command will definitely show the output of the installed mono version, which is essentially 6.12.0.122. The version of Mono may differ at the time of your downloading and installation of mono.

Alright, now you have successfully installed Mono on Debian 10, and now you can do whatever you want to do related to the development of applications.

Conclusion

In this post, we have learned about the Mono and its installation process. Mono will help developers to develop applications and their development tools. We have explained each step in detail for you to get a better understanding of each step and install it really well.

About the author

Shehroz Azam

Shehroz Azam

A Javascript Developer & Linux enthusiast with 4 years of industrial experience and proven know-how to combine creative and usability viewpoints resulting in world-class web applications. I have experience working with Vue, React & Node.js & currently working on article writing and video creation.