How To Install php-brick-math on Fedora 36

In this tutorial we learn how to install php-brick-math in Fedora 36. php-brick-math is Arbitrary-precision arithmetic library

Introduction

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

What is php-brick-math

A PHP library to work with arbitrary precision numbers. Autoloader

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

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

sudo dnf -y install php-brick-math

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

sudo yum -y install php-brick-math

How To Uninstall php-brick-math on Fedora 36

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

sudo dnf remove php-brick-math

php-brick-math Package Contents on Fedora 36

/usr/share/doc/php-brick-math
/usr/share/doc/php-brick-math/CHANGELOG.md
/usr/share/doc/php-brick-math/README.md
/usr/share/doc/php-brick-math/SECURITY.md
/usr/share/doc/php-brick-math/composer.json
/usr/share/licenses/php-brick-math
/usr/share/licenses/php-brick-math/LICENSE
/usr/share/php/Brick
/usr/share/php/Brick/Math
/usr/share/php/Brick/Math/BigDecimal.php
/usr/share/php/Brick/Math/BigInteger.php
/usr/share/php/Brick/Math/BigNumber.php
/usr/share/php/Brick/Math/BigRational.php
/usr/share/php/Brick/Math/Exception
/usr/share/php/Brick/Math/Exception/DivisionByZeroException.php
/usr/share/php/Brick/Math/Exception/IntegerOverflowException.php
/usr/share/php/Brick/Math/Exception/MathException.php
/usr/share/php/Brick/Math/Exception/NegativeNumberException.php
/usr/share/php/Brick/Math/Exception/NumberFormatException.php
/usr/share/php/Brick/Math/Exception/RoundingNecessaryException.php
/usr/share/php/Brick/Math/Internal
/usr/share/php/Brick/Math/Internal/Calculator
/usr/share/php/Brick/Math/Internal/Calculator.php
/usr/share/php/Brick/Math/Internal/Calculator/BcMathCalculator.php
/usr/share/php/Brick/Math/Internal/Calculator/GmpCalculator.php
/usr/share/php/Brick/Math/Internal/Calculator/NativeCalculator.php
/usr/share/php/Brick/Math/RoundingMode.php
/usr/share/php/Brick/Math/autoload.php

References

Summary

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