set return value to error if rhere are missing dependancies
use name+arch pkg names to determine versions not just names. Also try and detemine if the pkg misses it dependancies because there are newer version installed and -n s used