Check if Apache is installed on a Ubuntu machine
This might be useful for a more generic approach, not depending on dpkg
command -v apache2
There's a post on this subject:How can I check if a program exists from a Bash script?
This might be useful for a more generic approach, not depending on dpkg
command -v apache2
There's a post on this subject:How can I check if a program exists from a Bash script?