Only add yum requirement on YUM-based platforms

Yum is not needed on Ubuntu systems, and sometimes this causes constraint problems.