It’s not very sophisticated and has no error handling, but I only run it locally…
#!/bin/bash
echo -e "\n...READING NEWS...\n"
yay -Pw
echo -e "\n...UPDATING MIRRORS...\n"
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
sudo reflector --country Germany --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
echo -e "\n...UPDATING REPO PACKAGES...\n"
sudo pacman -Syu
echo -e "\n...UPDATING AUR...\n"
yay -Syu
echo -e "\n...ORPHANED PACKAGES...\n"
pacman -Qtd
echo -e "\n...PACKAGES NOT IN ARCH REPO...\n"
pacman -Qm
echo -e "\n...NEW CONFIG FILES...\n"
sudo find /etc -name *.pac*
echo "DONE 😊"
#Dependencies: yay, reflector, rsync, noto-fonts-emoji
You mean old Ubuntu?