To find what packages you’ve got installed already on your Raspberry Pi, type in the terminal window
dpkg –get-selections
if the list is too overwhelming, you can limit the search to the particular family of packages you’re looking for, like msql
dpkg –get-selections | msql
Useful.