I want to check whether a specific Linux package has been installed or not using th rpm
command in a single line.
However , it's always giving me a positive result as service present, even if httpd
is not installed, can you please point out issue here?
rpm -qa httpd && echo "service present" || echo " service not present"