$ dpkg -l | grep php
위 명령어를 입력하면 아래와 같이 출력됩니다.
ii php-cli 1:7.2+60ubuntu1 all command-line interpreter for ...
ii php-common 1:60ubuntu1 all Common files for PHP packages
ii php-curl 1:7.2+60ubuntu1 all CURL module for PHP [default]
ii php-fpm 1:7.2+60ubuntu1 all server-side, HTML-embedded ...
ii php-gd 1:7.2+60ubuntu1 all GD module for PHP [default]
ii php-intl 1:7.2+60ubuntu1 all Internationalisation module for PHP [default]
ii php-json 1:7.2+60ubuntu1 all JSON module for PHP [default]
ii php-mbstring 1:7.2+60ubuntu1 all MBSTRING module for PHP [default]
ii php-mysql 1:7.2+60ubuntu1 all MySQL module for PHP [default]
ii php-soap 1:7.2+60ubuntu1 all SOAP module for PHP [default]
ii php-xml 1:7.2+60ubuntu1 all DOM, SimpleXML, WDDX, ...
ii php-xmlrpc 1:7.2+60ubuntu1 all XMLRPC-EPI module for PHP [default]
ii php-zip 1:7.2+60ubuntu1 all Zip module for PHP [default]
ii php7.2-cli 7.2.7-0ubuntu0.18.04.2 amd64 command-line interpreter ...
ii php7.2-common 7.2.7-0ubuntu0.18.04.2 amd64 documentation, ...
ii php7.2-curl 7.2.7-0ubuntu0.18.04.2 amd64 CURL module for PHP
ii php7.2-fpm 7.2.7-0ubuntu0.18.04.2 amd64 server-side, ...
ii php7.2-gd 7.2.7-0ubuntu0.18.04.2 amd64 GD module for PHP
ii php7.2-intl 7.2.7-0ubuntu0.18.04.2 amd64 Internationalisation module for PHP
ii php7.2-json 7.2.7-0ubuntu0.18.04.2 amd64 JSON module for PHP
ii php7.2-mbstring 7.2.7-0ubuntu0.18.04.2 amd64 MBSTRING module for PHP
ii php7.2-mysql 7.2.7-0ubuntu0.18.04.2 amd64 MySQL module for PHP
ii php7.2-opcache 7.2.7-0ubuntu0.18.04.2 amd64 Zend OpCache module for PHP
ii php7.2-readline 7.2.7-0ubuntu0.18.04.2 amd64 readline module for PHP
ii php7.2-soap 7.2.7-0ubuntu0.18.04.2 amd64 SOAP module for PHP
ii php7.2-xml 7.2.7-0ubuntu0.18.04.2 amd64 DOM, SimpleXML, ...
ii php7.2-xmlrpc 7.2.7-0ubuntu0.18.04.2 amd64 XMLRPC-EPI module for PHP
ii php7.2-zip 7.2.7-0ubuntu0.18.04.2 amd64 Zip module for PHP