Upgrade packages if needed.