How to Install and Uninstall php-dev Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 18,2024

1. Install "php-dev" package

Please follow the instructions below to install php-dev on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install php-dev

2. Uninstall "php-dev" package

Please follow the guidelines below to uninstall php-dev on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the php-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Package: php-dev
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 23
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php8.3-dev
Filename: pool/main/p/php-defaults/php-dev_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7708
MD5sum: 95b87e9c2abd7bb4768ed9840ecb5eee
SHA1: a799dc443d68857e4f318c834a804fd6fad4deb6
SHA256: d1e6288e24c83518a856fdb32faf013ce7b5cde4f48f3bcb213d73ed864f71b5
Description: Files for PHP module development (default)
Description-md5: 4840bebad862af7983d39f4b6565265a

Package: php-dev
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: php
Source: php-defaults (75)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 13
Depends: php7.4-dev
Filename: pool/main/p/php-defaults/php-dev_7.4+75_all.deb
Size: 2744
MD5sum: d8c1d4f11d883633badeeb3497afde12
SHA1: 8d2b7e9753e4f017928a44cc13b3c1e40e16d911
SHA256: 93302306d39372333fe6f200f631b8ed2e34194fbc0c6ea79658c5d13c0b5460
Description: Files for PHP module development (default)
Description-md5: 601bc911ce7cca9ad73432873fce204d