How to Install and Uninstall php-dev Package on Ubuntu 21.10 (Impish Indri)

Last updated: January 10,2025

1. Install "php-dev" package

This guide covers the steps necessary to install php-dev on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install php-dev

2. Uninstall "php-dev" package

Please follow the steps below to uninstall php-dev on Ubuntu 21.10 (Impish Indri):

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

3. Information about the php-dev package on Ubuntu 21.10 (Impish Indri)

Package: php-dev
Source: php-defaults (85+ubuntu21.10.1+deb.sury.org+1)
Priority: optional
Section: php
Installed-Size: 22
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.0+85+ubuntu21.10.1+deb.sury.org+1
Depends: php8.0-dev
Filename: pool/main/p/php-defaults/php-dev_8.0+85+ubuntu21.10.1+deb.sury.org+1_all.deb
Size: 7352
MD5sum: 4afc546e40693628d44d90925c87e4ee
SHA1: ac2de2a2955f0691000305b2760cde72b34ceab7
SHA256: dbf629bf666e48f015c9793f2e2b788708d3fb9f58a2a59e45c0c06b2bd6fdcd
Description-en: 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.0).
Description-md5: 6a755cf1a0b6ed09fc54436134af2acd

Package: php-dev
Architecture: all
Version: 2:8.0+82~0build1
Priority: optional
Section: php
Source: php-defaults (82~0build1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 22
Depends: php8.0-dev
Filename: pool/main/p/php-defaults/php-dev_8.0+82~0build1_all.deb
Size: 3316
MD5sum: cfd1b5a874056af76b125e1538af1be1
SHA1: d845ed1095b175d2676cefed746044bbf5023b1c
SHA256: 41bbdda871872ee23c7503289c802c45318dae6cbe9b64cf21d459d90150509a
SHA512: f1849a710a0449b0409564584457b0489813d96fa3b813d15ca4045f3bb36f0a0337af63748efaac5bb27ccaa931e63aa60b97636faf48c8a1cac81ff066519c
Description-en: 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.0).
Description-md5: 6a755cf1a0b6ed09fc54436134af2acd