How to Install and Uninstall dh-php Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 11,2024

1. Install "dh-php" package

This tutorial shows how to install dh-php on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install dh-php

2. Uninstall "dh-php" package

Please follow the step by step instructions below to uninstall dh-php on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the dh-php package on Ubuntu 21.04 (Hirsute Hippo)

Package: dh-php
Priority: optional
Section: php
Installed-Size: 50
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 3.1+ubuntu21.04.1+deb.sury.org+1
Depends: debhelper, liblist-moreutils-perl, perl, xml2
Filename: pool/main/d/dh-php/dh-php_3.1+ubuntu21.04.1+deb.sury.org+1_all.deb
Size: 15584
MD5sum: 66a57082744c8c427ea0d246f46c9225
SHA1: 5d03e9dd91ed52c4b3d8dc7ee7164b1d9d0cd15b
SHA256: acec93b0c6fc63442a7841f79701b6920fb94f13b7f21c0ee7e889f4a1ec2530
Description-en: debhelper add-on to handle PHP PECL extensions
dh-php provides a debhelper sequence add-on named 'php' and the
dh_php command.
.
The dh_php command adds the appropriate code to the postinst, prerm
and postrm maint scripts to properly enable/disable PHP PECL
extensions for all available PHP SAPIs.
Description-md5: 0d9587e964a759486074ebbfd28cbb16

Package: dh-php
Architecture: all
Version: 0.35
Priority: extra
Section: universe/php
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 49
Depends: debhelper, liblist-moreutils-perl, perl, xml2
Filename: pool/universe/d/dh-php/dh-php_0.35_all.deb
Size: 12724
MD5sum: 04f165c07043cea3760b4a7fb703dcdc
SHA1: e510bd43fc0f0e28fd49b368ae796efb15e3296b
SHA256: 15ac1636b74093f1c266ff41a027cf2b189b31f6fe6afaabbceb700b3b6109c3
SHA512: 209fa9a2f1dde701cfb1f8fed071b02aacdc6628af77c065f443ea019e2eb1a098700afdbffbccb214ecf988c6a72def7f4b7f6dbdd089895cccae46876f22a2
Description-en: debhelper add-on to handle PHP PECL extensions
dh-php provides a debhelper sequence add-on named 'php' and the
dh_php command.
.
The dh_php command adds the appropriate code to the postinst, prerm
and postrm maint scripts to properly enable/disable PHP PECL
extensions for all available PHP SAPIs.
Description-md5: 0d9587e964a759486074ebbfd28cbb16