How To Install mono-cecil on CentOS 7

In this tutorial we learn how to install mono-cecil on CentOS 7. mono-cecil is Library to generate and inspect programs and libraries in the ECMA

Introduction

In this tutorial we learn how to install mono-cecil on CentOS 7.

What is mono-cecil

Cecil is a library written by Jb Evain to generate and inspect programs and libraries in the ECMA CIL format. It has full support for generics, and support some debugging symbol format. In simple English, with Cecil, you can load existing managed assemblies, browse all the contained types, modify them on the fly and save back to the disk the modified assembly. Today it is used by the Mono Debugger, the bug-finding and compliance checking tool Gendarme, MoMA, DB4O, as well as many other tools.

We can use yum or dnf to install mono-cecil on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install mono-cecil.

Install mono-cecil on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mono-cecil using yum by running the following command:

sudo yum -y install mono-cecil

Install mono-cecil on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install mono-cecil using dnf by running the following command:

sudo dnf -y install mono-cecil

How To Uninstall mono-cecil on CentOS 7

To uninstall only the mono-cecil package we can use the following command:

sudo dnf remove mono-cecil

References

Summary

In this tutorial we learn how to install mono-cecil on CentOS 7 using yum and dnf.