How To Install php-php-gettext on Fedora 36

In this tutorial we learn how to install php-php-gettext in Fedora 36. php-php-gettext is Gettext emulation in PHP

Introduction

In this tutorial we learn how to install php-php-gettext on Fedora 36.

What is php-php-gettext

This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

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

Install php-php-gettext on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install php-php-gettext

Install php-php-gettext on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install php-php-gettext

How To Uninstall php-php-gettext on Fedora 36

To uninstall only the php-php-gettext package we can use the following command:

sudo dnf remove php-php-gettext

php-php-gettext Package Contents on Fedora 36

/usr/share/doc/php-php-gettext
/usr/share/doc/php-php-gettext/AUTHORS
/usr/share/doc/php-php-gettext/README
/usr/share/licenses/php-php-gettext
/usr/share/licenses/php-php-gettext/COPYING
/usr/share/php/gettext
/usr/share/php/gettext/gettext.inc
/usr/share/php/gettext/gettext.php
/usr/share/php/gettext/streams.php

References

Summary

In this tutorial we learn how to install php-php-gettext on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).