How To Install gmsh on Fedora 34

gmsh is A three-dimensional finite element mesh generator

Introduction

In this tutorial we learn how to install gmsh on Fedora 34.

What is gmsh

Gmsh is a 3D finite element grid generator with a build-in CAD engine and post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with parametric input and advanced visualization capabilities. Gmsh is built around four modules geometry, mesh, solver and post-processing. The specification of any input to these modules is done either interactively using the graphical user interface or in ASCII text files using Gmsh’s own scripting language.

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

Install gmsh on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install gmsh

Install gmsh on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install gmsh

How To Uninstall gmsh on Fedora 34

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

sudo dnf remove gmsh

gmsh Package Contents on Fedora 34

/usr/bin/gmsh
/usr/lib/.build-id
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/e3d7e96df84fb4718b4bb6ef50dbef6d7e1a87

References

Summary

In this tutorial we learn how to install gmsh on Fedora 34 using yum and dnf.