
& echo "Please confirm removal of folder $hashedName" & rm -rI $hashedName Here -s syncs the deps and -i installs the package, while -noconfirm skips asking for confirmation, then we cd out of the folder, and finally ask the user for permission to remove the folder, which doubles as a way to make doubly sure nothing is removed by mistake.

Then we cd into the folder, install using makepkg -si -boconfirm. The -c option in wget makes it try to continue the download if it failed previously, not strictly necessary but can help in some situations, while the -O - option means "output ( -O) to stdout ( -)", which pipes the contents of the file to stdout and we then pipe it into tar -xz (No need for the f option as there's no file, and the v option we usually include is just for verbosity which we also don't need. The Uppercase I in the rm is the option that prompts you for confirmation before deleting anything, while the lowercase r makes it recursive so it deletes the directory together with all its contents.


Downgrading is a very poor solution but does work.ġ202's comment worked like a charm to me, so I made a one-liner in Bash that does it all, only asking for confirmation before removing the folder at the end, to ensure the one-liner has zero chances of deleting anything that shouldn't be deleted even if you mess with the environment variable (provided of course you use the same variable in the echo that asks for confirmation and in the rm command that actually deletes stuff).
