Ubuntu find Dependencies for a package

To find dependencies for a package, run


In above example, when you install php7.2, it install “libapache2-mod-php7.2”, that will install Apache web server. I had a server with ngtinx, when i install php7.2 package, apache get installed.

You can also use

To find reverse dependency, run