How To Install tetgen on CentOS 7

In this tutorial we learn how to install tetgen on CentOS 7. tetgen is A Quality Tetrahedral Mesh Generator

Introduction

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

What is tetgen

TetGen is a program to generate tetrahedral meshes of any 3D polyhedral domains. TetGen generates exact constrained Delaunay tetrahedralizations, boundary conforming Delaunay meshes, and Voronoi partitions.

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

Install tetgen on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install tetgen

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

sudo dnf -y install tetgen

How To Uninstall tetgen on CentOS 7

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

sudo dnf remove tetgen

References

Summary

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