Find out if package is installed in Linux

Red Hat Enterprise / Fedora Linux / Suse Linux / Cent OS
Under Red Hat/Fedora Linux use rpm command:
$ rpm -qa | grep {package-name}
For example find out package mutt installed or not:
$ rpm -qa | grep mutt


If you don’t get any output ( package name along with version), it means package is not installed at all. You can display list all installed packages with the following command:
$ rpm -qa
$ rpm -qa | less

About this entry