How To Install mscgen on CentOS 7

In this tutorial we learn how to install mscgen on CentOS 7. mscgen is Message Sequence Chart rendering program

Introduction

In this tutorial we learn how to install mscgen on CentOS 7.

What is mscgen

Mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, SVG, EPS or server side image maps (ismaps) as the output. Message Sequence Charts (MSCs) are a way of representing entities and interactions over some time period and are often used in combination with SDL. MSCs are popular in Telecoms to specify how protocols operate although MSCs need not be complicated to create or use. Mscgen aims to provide a simple text language that is clear to create, edit and understand, which can also be transformed into common image formats for display or printing.

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

Install mscgen on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mscgen using yum by running the following command:

sudo yum -y install mscgen

Install mscgen 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 mscgen using dnf by running the following command:

sudo dnf -y install mscgen

How To Uninstall mscgen on CentOS 7

To uninstall only the mscgen package we can use the following command:

sudo dnf remove mscgen

References

Summary

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