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

Last updated: October 06,2024

1. Install "php-xdebug" package

Please follow the guidelines below to install php-xdebug on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install php-xdebug

2. Uninstall "php-xdebug" package

This is a short guide on how to uninstall php-xdebug on Ubuntu 18.04 LTS (Bionic Beaver):

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

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

Package: php-xdebug
Source: xdebug
Priority: optional
Section: php
Installed-Size: 18
Maintainer: Debian PHP PECL Maintainers
Architecture: amd64
Version: 3.1.5+2.9.8+2.8.1+2.5.5-1+ubuntu18.04.1+deb.sury.org+1
Depends: ucf, php8.1-xdebug
Pre-Depends: php-common (>= 2:69~)
Filename: pool/main/x/xdebug/php-xdebug_3.1.5+2.9.8+2.8.1+2.5.5-1+ubuntu18.04.1+deb.sury.org+1_amd64.deb
Size: 7396
MD5sum: a4bf8e81396ba6365ee49ab1bb405e60
SHA1: 4b095e8f6ebb6dc66149149ca994f042112e29f4
SHA256: 73867e100db29908ca69941941f1ffcde8396d3d0195879f7dcb6c24cbdf5a39
Description: Xdebug Module for PHP
Description-md5: 960fff0d47cec49f1da1997641a8c7de

Package: php-xdebug
Architecture: amd64
Version: 2.6.0-0ubuntu1
Priority: optional
Section: universe/php
Source: xdebug
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP PECL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1603
Provides: php7.2-xdebug
Depends: ucf, php-common (>= 1:7.0+33~), phpapi-20170718, libc6 (>= 2.14)
Filename: pool/universe/x/xdebug/php-xdebug_2.6.0-0ubuntu1_amd64.deb
Size: 379156
MD5sum: c91d9cba973d68529fd89a440876ca3e
SHA1: d324068211f3378dd77fe14e18d649db0936e97b
SHA256: 4f0f014e93dc2b613fb25e5bcf850b31bebbc162d1d7ecf26a46c8cebc2225dd
Homepage: http://xdebug.org/
Description: Xdebug Module for PHP
Description-md5: 0f0798e7431f8c626ceea9d500b3e977