how to check if apache installed or not debian terminal code example Example: do I have apache installed on my debian server dpkg --get-selections | grep apache