Query Package pre-installed or not - Ubuntu

rajeshp@ubuntu01:~$ dpkg-query -l |grep apache
ii  apache2                             2.4.6-2ubuntu2.2                 amd64        Apache HTTP Server
ii  apache2-bin                         2.4.6-2ubuntu2.2                 amd64        Apache HTTP Server (binary files and modules)
ii  apache2-data                        2.4.6-2ubuntu2.2                 all          Apache HTTP Server (common files)


or, simply use 
rajeshp@ubuntu01:~$ dpkg-query -l              //For all the installed packages in current server

If you know the package name :-

rajeshp@ubuntu01:~$ dpkg -s apache2
Package: apache2
Status: install ok installed
Priority: optional
-----------------
----------
-----
.....<all the details on installed package>             //In my case, apache2

Comments

Popular posts from this blog

Xmanager RHEL 6 xclock :command not found -- Resolved

Racktable on ubuntu installation

RPM Tit-Bits ;-)