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

Last updated: May 20,2024

1. Install "php-json" package

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

$ sudo apt update $ sudo apt install php-json

2. Uninstall "php-json" package

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

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

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

Package: php-json
Source: php-defaults (94+ubuntu20.04.1+deb.sury.org+2)
Priority: optional
Section: php
Installed-Size: 14
Maintainer: Debian PHP Maintainers
Architecture: all
Version: 2:8.3+94+ubuntu20.04.1+deb.sury.org+2
Depends: php-common, php8.3-json
Filename: pool/main/p/php-defaults/php-json_8.3+94+ubuntu20.04.1+deb.sury.org+2_all.deb
Size: 7344
MD5sum: 8664714595eae6622eeb0d685bb2f8c3
SHA1: dc60b508f44ec6b0ac0879222c19507688bcdb87
SHA256: 9ab6e05210322a6e21330bfbcc696b0684b64b74bb3102510269f7a8bd43eab3
Description: JSON module for PHP [default]
Description-md5: bfa108bc70878257b9a87ee669da633d

Package: php-json
Architecture: all
Version: 2:7.4+75
Priority: optional
Section: universe/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: php-common, php7.4-json
Filename: pool/universe/p/php-defaults/php-json_7.4+75_all.deb
Size: 2000
MD5sum: d28dca75a9f2774226e3235025cb5a65
SHA1: f6e1103471749918df6b2eb682757f548826e23e
SHA256: 4f950339a2e00d7177c24b0a7d8edb4491a30d537a7234223522681f0e7c52a8
Description: JSON module for PHP [default]
Description-md5: 75a773432d210a4dafb57ae2359918db