How To Install php-pecl-mailparse on Fedora 36

In this tutorial we learn how to install php-pecl-mailparse in Fedora 36. php-pecl-mailparse is PHP PECL package for parsing and working with email messages

Introduction

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

What is php-pecl-mailparse

Mailparse is an extension for parsing and working with email messages. It can deal with rfc822 and rfc2045 (MIME) compliant messages.

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

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

sudo dnf -y install php-pecl-mailparse

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

sudo yum -y install php-pecl-mailparse

How To Uninstall php-pecl-mailparse on Fedora 36

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

sudo dnf remove php-pecl-mailparse

php-pecl-mailparse Package Contents on Fedora 36

/etc/php-zts.d/40-mailparse.ini
/etc/php.d/40-mailparse.ini
/usr/lib/.build-id
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/2c8da48450b44bf2fed75ec61a0189f73faacf
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/adc8c0e8737a0cf7d0c6a19b182f35a49c0a2f
/usr/lib64/php-zts/modules/mailparse.so
/usr/lib64/php/modules/mailparse.so
/usr/share/doc/pecl/mailparse
/usr/share/doc/pecl/mailparse/CREDITS
/usr/share/doc/pecl/mailparse/README.md
/usr/share/doc/pecl/mailparse/try.php
/usr/share/licenses/php-pecl-mailparse
/usr/share/licenses/php-pecl-mailparse/LICENSE
/var/lib/php/peclxml/php-pecl-mailparse.xml

References

Summary

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