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

Last updated: May 15,2024

1. Install "php-fpm" package

Here is a brief guide to show you how to install php-fpm on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-fpm

2. Uninstall "php-fpm" package

Please follow the instructions below to uninstall php-fpm on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: php-fpm
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: php8.1-fpm
Filename: pool/main/p/php-defaults/php-fpm_8.1+92+ubuntu18.04.1+deb.sury.org+2_all.deb
Size: 7348
MD5sum: 059a7940324416a848193afe1698364f
SHA1: 749883fd8b5dffde99fefc54f6a0eb3a71476107
SHA256: a12673886919075d1b7cf2eabeb8042bd8f808c806967ea236067c872a38b60f
Description: server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
Description-md5: 2f8aa0d9c24f7f33d4218178375a12d2

Package: php-fpm
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: php7.2-fpm
Filename: pool/universe/p/php-defaults/php-fpm_7.2+60ubuntu1_all.deb
Size: 3172
MD5sum: 250d2ddeff0bd0e144d31c2b31c59ea5
SHA1: 77e6ca7796344f7228f5f976ec007ef6a12e3d50
SHA256: 0af85be31b24b501c28fd6fe7393bd24f25165d295ce51ea3aa47faeebda5b4c
Description: server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
Description-md5: de001fb3c65e3b3953054ccc3798817a