https://wiki.archlinux.org/title/Pacman/Pacnew_and_Pacsave
MY advice is
Continuing the discussion from Why is the community repo missing?:
This recent post also includes some of the ‘easier’ options and additional hooks