TESTED ON Linux 6.4.3-arch1-1
chmod +x install_packages_dump.sh
chmod +x install_yay.sh
To begin, first launch install_yay.sh. This script does not require root or sudo privileges to be executed.
Next, run install_packages_dump.sh. However, it needs to be executed as root or with sudo privileges.