We assume that you have already installed an AUR helper, such as yay, paru or pamac.
paru -S --needed