How to Install and Uninstall php-dev Package on Debian 11 (Bullseye)

Last updated: December 27,2024

1. Install "php-dev" package

This is a short guide on how to install php-dev on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install php-dev

2. Uninstall "php-dev" package

Please follow the instructions below to uninstall php-dev on Debian 11 (Bullseye):

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

3. Information about the php-dev package on Debian 11 (Bullseye)

Package: php-dev
Source: php-defaults (92+0~20220117.43+debian11~1.gbpe0d14e)
Version: 2:8.1+92+0~20220117.43+debian11~1.gbpe0d14e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 23
Depends: php8.1-dev
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-dev_8.1+92+0~20220117.43+debian11~1.gbpe0d14e_all.deb
Size: 7788
SHA256: 162f792e2e75c687f458f6bc80d38b01ae3430a1f177197412de05486a225f69
SHA1: ba78917449e6584982af6df0e93080de9e8f1ec8
MD5sum: dca5e082c8bee9fe992890ab0b20a398
Description: Files for PHP module development (default)
Headers and other PHP needed for compiling additional modules.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
.
This package is a dependency package, which depends on latest stable
PHP version (currently 8.1).
Description-md5: 971ca54340451bd51e3434d658a9b396

Package: php-dev
Source: php-defaults (76)
Version: 2:7.4+76
Installed-Size: 22
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php7.4-dev
Description: Files for PHP module development (default)
Description-md5: 601bc911ce7cca9ad73432873fce204d
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-dev_7.4+76_all.deb
Size: 6728
MD5sum: 49cb9de6a221edf06104c20df73bad66
SHA256: 595bad457ce66a552f5bccd2a58ae981ddaab6b44d361c26f0ac3421e0ed3e3d