Yum api

Mostly migrate to yum API and avoid shell