[arch-general] Wrapper for yaourt and pacman

Ralf Mardorf ralf.mardorf at alice-dsl.net
Sat Jul 13 17:16:25 EDT 2013


to write a wrapper for yaourt, e.g. "yaourt -Syua" and pacman e.g.
"pacman -Syu" I need to redirect the output to a variable, since I need
to know the packages.

i=`yaourt -Syua` doesn't work, $i only contains the last package
i=`pacman -Syu`  does work, $i contains all packages

How can I get a package list of the output "-Syua"?

Btw. is there a way to get a cache for yaourt that isn't located
in /tmp? if not, then this would be one of the tasks the wrapper should


More information about the arch-general mailing list