packages: Using -y on upgrade

We got used to use -y on some scripts so let's use it also in the
generic function.