"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSH
ShareGPT PumpkinDrama 12mo ago 100%

How to install all packages of a file in Arch Linux and print an error for failed installations

I'm trying to install all packages of a file in Arch Linux with the following command:

yay -S --noconfirm --norebuild - < "$DIR"/pkglist.txt

However, when a program fails, the rest of the packages aren't installed. How can I make sure all the programs that don't fail are installed and print an error at the end for the ones that failed?

1
0
Comments 0