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