Search notes:

dpkg --status / dpkg -s

dpkg --status (shortened as dpkg -s) shows a package's status (which is recorded in /var/lib/dpkg/status).
The status consists various details:
$ dpkg -s fonts-open-sans
Package: fonts-open-sans
Status: install ok installed
Priority: optional
Section: fonts
Installed-Size: 2822
Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
Architecture: all
Multi-Arch: foreign
Version: 1.11-1.1
Description: humanist sans serif typeface by Steve Matteson
 Open Sans is a clean and modern sans-serif typeface designed
 by Steve Matteson and commissioned by Google.
 …
dpkg -s can be used to verify if a package is installed:
$ Debian ~ dpkg -s no-such-package
dpkg-query: package 'no-such-package' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.

See also

dpkg-query -s

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/di...', 1743242018, '3.143.244.80', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/distributions/Debian/dpkg/status(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78