Introduction
This is an article where the main content is about how to display package information. The main purpose of the content is to be able to present information of the package in Linux Ubuntu 19.10 operating system. The information is available by executing a specific tool. The tool itself is available for further execution in the command line interface. Below is the example for querying or retrieving the information of a specific package using a tool through a command eecution. Moreover, the tool or the command is the package management tool exist in the Linux Ubuntu operating system family. That tool or command is the ‘apt’ command. The following is the example of the command pattern of the execution :
Using apt-cache command to Display Package Information
apt-cache show package_name
Using the above command pattern, the following output is the exact execution of the command using the package with the name of ‘php7.3-gd’. Before the installation or even after the installation process take place, performing the command execution is not an issue. The important thing about the command execution, it is only for presenting or displaying information about a specific package. So, the command execution from the above command pattern with the additional parameter of ‘php7.3-gd’ as the package name exist as follows :
root@hostname:~# apt-cache show php7.3-gd Package: php7.3-gd Architecture: amd64 Version: 7.3.11-0ubuntu0.19.10.1 Priority: optional Section: php Source: php7.3 Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Debian PHP Maintainers <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 139 Provides: php-gd Depends: php-common (>= 1:35), ucf, php7.3-common (= 7.3.11-0ubuntu0.19.10.1), libc6 (>= 2.4), libgd3 (>= 2.1.1), libxpm4 Filename: pool/main/p/php7.3/php7.3-gd_7.3.11-0ubuntu0.19.10.1_amd64.deb Size: 27396 MD5sum: 1f12e4f1e864b168d5d280a283d9567b SHA1: 3ceaa57b62bc7da2b9586b41ab20a6d7c31771dd SHA256: b99eb355077bb053fce2d6e6b6e1cad7965522323343eeab92206b755432f588 Homepage: http://www.php.net/ Description-en: GD module for PHP This package provides the GD module(s) for PHP. . 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. Description-md5: 9aea7ee3b75b09eba5fefd1af9ab26af Supported: 9m Package: php7.3-gd Architecture: amd64 Version: 7.3.8-1 Priority: optional Section: php Source: php7.3 Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Debian PHP Maintainers <[email protected]> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 139 Provides: php-gd Depends: php-common (>= 1:35), ucf, php7.3-common (= 7.3.8-1), libc6 (>= 2.4), libgd3 (>= 2.1.1), libxpm4 Filename: pool/main/p/php7.3/php7.3-gd_7.3.8-1_amd64.deb Size: 27516 MD5sum: 52c5e665133da3dc21d9fef0b551b14f SHA1: 075ad6110c145724a2f1185bc58b08f634f903f4 SHA256: 0abe26ff5e4cffadbb821a440be00d4c050c83a8236fb0984df875edafd5d11d Homepage: http://www.php.net/ Description-en: GD module for PHP This package provides the GD module(s) for PHP. . 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. Description-md5: 9aea7ee3b75b09eba5fefd1af9ab26af Supported: 9m root@hostname:~#
The above command execution is the output of the command. According to the output of the command execution above, the package with the name of ‘php7.3-gd’ is a package for providing GD module(s) for PHP. The information actually exist in the ending part of the output. So, using the above command pattern, a package with a certain name can easily retrieved. Just change the last part or the ending parameter with the suitable package name. It will present a different output from the above output depends on the package name used as the ending parameter. Just try it with another package name.