Added command for updating base image in multiple Dockerfiles

- Added command for updating base image in multiple Dockerfiles
- Merged the command which cleans yum metadata into install command
That's a valid point.

P.S. Probably we'll end up with creating a `jboss/base` image with JDK and all necessary stuff that can be useful for many images to not duplicate it in their dockerfiles.