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