Ubuntu find Dependencies for a package

To find dependencies for a package, run

Example

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

apt-cache
apt

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *