I recently installed java6 on my debian box. I went to use javac and noticed it wasn't installed. Eventually I figured out (after searching online) that javac is part of the java6-sdk package. This isn't the first time where I've know the command I want, but I don't know the package(s) it's in.
My question is- is there a way to on the command line to figure out what file belongs to what package(s)? So if I wanted to see what packages javac belonged to, it would list java6-sdk, java5-sdk, .. since they all contain javac.