Add reporting of errors.
Implement version comparisons and dpkg queries.