How To Install Mayavi on Fedora 34

Mayavi is Scientific data 3-dimensional visualizer

Introduction

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

What is Mayavi

The Mayavi project includes two related packages for 3-dimensional visualization * Mayavi2 * TVTK popular open-source visualization library. These operate at different levels of abstraction. TVTK manipulates visualization objects, while Mayavi2 lets you operate on your data, and then see the results. Most users either use the Mayavi user interface or program to its scripting interface; you probably don’t need to interact with TVTK unless you want to create a new Mayavi module.

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

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

sudo dnf -y install Mayavi

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

sudo yum -y install Mayavi

How To Uninstall Mayavi on Fedora 34

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

sudo dnf remove Mayavi

Mayavi Package Contents on Fedora 34

/usr/bin/mayavi2
/usr/bin/tvtk_doc
/usr/share/applications/mayavi2.desktop
/usr/share/doc/Mayavi
/usr/share/doc/Mayavi/API.txt
/usr/share/doc/Mayavi/CHANGES.txt
/usr/share/doc/Mayavi/DEVELOPMENT.txt
/usr/share/doc/Mayavi/README-tvtk.txt
/usr/share/doc/Mayavi/THANKS.txt
/usr/share/doc/Mayavi/TODO.txt
/usr/share/icons/hicolor/48x48/apps/mayavi2.png
/usr/share/licenses/Mayavi
/usr/share/licenses/Mayavi/LICENSE.txt
/usr/share/licenses/Mayavi/LICENSE_COLORBREWER.txt
/usr/share/licenses/Mayavi/LICENSE_YORICK.txt
/usr/share/licenses/Mayavi/image_LICENSE.txt
/usr/share/licenses/Mayavi/image_LICENSE_CP.txt
/usr/share/licenses/Mayavi/image_LICENSE_Eclipse.txt
/usr/share/licenses/Mayavi/image_LICENSE_Nuvola.txt
/usr/share/licenses/Mayavi/image_LICENSE_OOo.txt
/usr/share/man/man1/mayavi2.1.gz

References

Summary

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