Show Installed Packages on Ubuntu or Debian

The command to use which will give a list of all the currently installed packages:

dpkg --get-selections

To find all installed packages related to jdk:

dpkg --get-selections | grep jdk

 

Leave a Reply

Your email address will not be published. Required fields are marked *