Initial implementation of package upgrade/downgrade