Not in this order. 
Specifying exact package is not an option. We can't predict what package may be installed.
The only worry is that we grep java - and there are other packages that contain 'java' in their name. Perhaps aiming for openjdk would be better. I will bring up a  new instance and see what is the actual crappy package installed by default.