DRY up rpm info querying