Answers to: Seeing if a package is already installedhttp://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed<p>How can I check in the terminal if a package is already installed?</p>enMon, 06 Jun 2011 11:38:29 -0400Comment by jeremy on xaccrocheur's answerhttp://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed#2584<p>While no package management system was in the description, he did tag the question with apt. I'm going to add the dpkg tag now.</p> <p>--jeremy</p>jeremyMon, 06 Jun 2011 11:38:29 -0400http://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed#2584Answer by xaccrocheurhttp://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed/2583<p>? You did'nt specify the system ; on a RPM-based system, like Red Hat Enterprise / Mandriva / Fedora / Linux / Cent OS, you can</p> <p><code>rpm -qa | grep packagename</code></p> <p>On a debian-based system like Ubuntu</p> <p><code>dpkg --list | grep packagename</code></p> <p>On an archlinux system</p> <p><code>pacman -Qs packagename1 packagename2 ...</code></p> <p>Oh, and on a bsd box you may :</p> <p><code>pkg_info | grep packagename</code></p>xaccrocheurMon, 06 Jun 2011 11:33:43 -0400http://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed/2583Answer by jeremyhttp://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed/2581<p>If you know the exact package name or would like detailed information, you can use the -s flag to dpkg to report the status of the package:</p> <pre><code>dpkg -s packagename</code></pre> <p>If you don't know the exact package name or would like summary information, you can use the -l flag to dpkg:</p> <pre><code>dpkg -l partial_packagename_with_wildcards</code></pre> <p>--jeremy</p>jeremyMon, 06 Jun 2011 09:36:48 -0400http://linuxexchange.org/questions/2578/seeing-if-a-package-is-already-installed/2581