First dont use sudo with pamac.
and dont use sudo in general if you dont need to, such as for searching something.
Second … if you are asking how to selectively upgrade, then I should tell you not to do this in general.
But, as these are only a few extremely non-foundational AUR packages then you can just install (build) them just as if you were doing so for the first time, ex;