$ apt search nginx           # search for a package by name/description
$ apt show nginx             # see details about a package before installing
$ dpkg -l | grep nginx        # check whether a package is already installed
