How to Install and Uninstall php-dev Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: May 17,2024

1. Install "php-dev" package

Please follow the steps below to install php-dev on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install php-dev

2. Uninstall "php-dev" package

Please follow the guidance below to uninstall php-dev on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the php-dev package on Ubuntu 22.04 LTS (Jammy Jellyfish)

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

Package: php-dev
Architecture: all
Version: 2:8.1+92ubuntu1
Priority: optional
Section: php
Source: php-defaults (92ubuntu1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23
Depends: php8.1-dev
Filename: pool/main/p/php-defaults/php-dev_8.1+92ubuntu1_all.deb
Size: 3170
MD5sum: 76a989e6bcec88c21486502d3936938b
SHA1: 33d35e181dd8d5902581775ccc5c8a356528ebb1
SHA256: 83c8f0bca6962de799db10ec2082d0a4b825df06de1d21d42d8492432c57d8aa
SHA512: cbb0b582fc5862974d7ec20e686724c48c540258492ad0616a8393423f4fe234615f7503dba73e1169f5bf2d352174d18723f0dfe35555c47d3c920ffbb83aed
Description: Files for PHP module development (default)
Description-md5: 971ca54340451bd51e3434d658a9b396