How To Install mathgl-mglview on CentOS 7

In this tutorial we learn how to install mathgl-mglview on CentOS 7. mathgl-mglview is Execute MathGL scripts and show in an window

Introduction

In this tutorial we learn how to install mathgl-mglview on CentOS 7.

What is mathgl-mglview

mglview reads MGL scripts from scriptfile to produce plots of specified functions or data. The program will create a GUI window showing the script result.

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

Install mathgl-mglview on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install mathgl-mglview

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

sudo dnf -y install mathgl-mglview

How To Uninstall mathgl-mglview on CentOS 7

To uninstall only the mathgl-mglview package we can use the following command:

sudo dnf remove mathgl-mglview

References

Summary

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