Search Debian system for a Certain Package

You can search for a certain package in a Debian system using dpkg.

dpkg --list "package_name"


Give the command

dpkg --list "apache2*"

the result looks like:

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
ii  apache2                    2.2.22-13          amd64              Apache HTTP Server metapackage
un  apache2-common             <none>                                (no description available)
un  apache2-doc                <none>                                (no description available)
un  apache2-mpm                <none>                                (no description available)
un  apache2-mpm-event          <none>                                (no description available)
un  apache2-mpm-itk            <none>                                (no description available)
ii  apache2-mpm-prefork        2.2.22-13          amd64              Apache HTTP Server - traditional non-threaded model
un  apache2-mpm-worker         <none>                                (no description available)
un  apache2-suexec             <none>                                (no description available)
un  apache2-suexec-custom      <none>                                (no description available)
ii  apache2-utils              2.2.22-13          amd64              utility programs for webservers
ii  apache2.2-bin              2.2.22-13          amd64              Apache HTTP Server common binary files
ii  apache2.2-common           2.2.22-13          amd64              Apache HTTP Server common files