How To Install perl-Tk on AlmaLinux 8

In this tutorial we learn how to install perl-Tk in AlmaLinux 8. perl-Tk is Perl Graphical User Interface ToolKit

Introduction

In this tutorial we learn how to install perl-Tk on AlmaLinux 8.

What is perl-Tk

This a re-port of a perl interface to Tk8.4. C code is derived from Tcl/Tk8.4.5. It also includes all the C code parts of Tix8.1.4 from SourceForge. The perl code corresponding to Tix’s Tcl code is not fully implemented. Perl API is essentially the same as Tk800 series Tk800.025 but has not been verified as compliant. There ARE differences see pod/804delta.pod.

We can use yum or dnf to install perl-Tk on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Tk.

Install perl-Tk on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Tk

Install perl-Tk on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Tk

How To Uninstall perl-Tk on AlmaLinux 8

To uninstall only the perl-Tk package we can use the following command:

sudo dnf remove perl-Tk

References

Summary

In this tutorial we learn how to install perl-Tk on AlmaLinux 8 using yum and dnf.