Streamline yum usage

Improve our yum usage so it's not needlessly called in a lengthy loop.