How to Install and Uninstall php-bcmath Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 12,2024

1. Install "php-bcmath" package

This guide covers the steps necessary to install php-bcmath on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-bcmath

2. Uninstall "php-bcmath" package

In this section, we are going to explain the necessary steps to uninstall php-bcmath on Ubuntu 18.04 LTS (Bionic Beaver):

$ sudo apt remove php-bcmath $ sudo apt autoclean && sudo apt autoremove

3. Information about the php-bcmath package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: php-bcmath
Source: php-defaults (92+ubuntu18.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.1+92+ubuntu18.04.1+deb.sury.org+2
Depends: php-common, php8.1-bcmath
Filename: pool/main/p/php-defaults/php-bcmath_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7292
MD5sum: 4676cceb8ee647ed7d94682972d433f4
SHA1: 8991e670a39be6febc454d20590acdf120d3c62d
SHA256: 8349c4f7143468a106ec65d1c8b0972c310d22126a21289bb3000a6264b136bf
Description: Bcmath module for PHP [default]
Description-md5: ec90857a6f235cf77965936c1c3ccd04

Package: php-bcmath
Architecture: all
Version: 1:7.2+60ubuntu1
Priority: optional
Section: universe/php
Source: php-defaults (60ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 12
Depends: php-common, php7.2-bcmath
Filename: pool/universe/p/php-defaults/php-bcmath_7.2+60ubuntu1_all.deb
Size: 2004
MD5sum: 9d75a485bea5d405dbd8d6a25156191e
SHA1: 455657380e271aaac54f0e9a33c675c8ff03ec9a
SHA256: 1c3a6fbb912264826d879ddeacf738f4610c5be4a691a159736b06f1f973daa9
Description: Bcmath module for PHP [default]
Description-md5: 15397ffccaff8f2891b3494a23f85394