As for:
sudo pacman -Syu --asdeps pacman-contrib
There is following warning at the Arch-Wiki: pacman - ArchWiki
Note: Using
--asdeps
and--asexplicit
options when upgrading, such as withpacman -Syu package_name --asdeps
, is discouraged. This would change the installation reason of not only the package being installed, but also the packages being upgraded.