install-deps: add a yum_install function

Rather than calling yum each time, check first using rpm if the package
is already installed.