lib/yum: support Q[q] operation