added base class for pkg classes. added update_system function to update
a whole system