Add missing functions from old yumpkg module

These functions were present before and needed to be added so that the
yum provider didn't lose any functionality from yumpkg being deprecated.