Example: https://packages.ubuntu.com/bionic/php7.2
php
package depends on one of:
libapache2-mod-php7.2
php7.2-fpm
php7.2-cgi
Running sudo apt install php
always installs the first of these dependencies, unless one of the others has been installed already. Even running sudo apt install php php-cli
installs the first dependency.
How can I select e.g. php-cgi
in one go ?
So instead of
sudo apt install php-cgi && sudo apt install php
I want something like
sudo apt install --select-dependency php-cgi php
Please note that
php
is just an example, I'm looking for a general answer.