RPM Package Listing - In Progress

This code isn't working on CentOS6 yet due to rpm-devel changes that were never backported due to compatibility reasons.
maybe toss these in a vector and foreach by reference through them?