Wrapper for yaourt and pacman

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

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
do.

Regards,
Ralf



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux