[arch-general] [solved] Wrapper for yaourt and pacman

Ralf Mardorf ralf.mardorf at alice-dsl.net
Tue Jul 16 07:45:36 EDT 2013


On Mon, 2013-07-15 at 11:49 +0200, I wrote:
> If somebody has got a better idea, that does avoid to install linux-rt
> two times, please let me know.

Perhaps someday somebody else does miss the forest for the trees, so
here's the forest I found:

yaourt -aQu linux-rt

does check if there's an update for the linux-rt aur package :).

Tested with:

[rocketmouse at archlinux ~]$ yaourt -aQu git google-earth
extra/git 1.8.3.2-1
aur/google-earth 7.1.1.1888-1 [installed: 7.1.1.1871-1] (1876)

[rocketmouse at archlinux ~]$ pacman -S git --print --print-format %v
1.8.3.3-1

If there isn't an update the output does look like this:

[rocketmouse at archlinux ~]$ yaourt -Qua linux-rt
aur/linux-rt 3.8.13_rt14-1 [installed] (162)

Special thanks to Gaetan for the hint to use "--print --print-format".

I haven't written a script yet, but now all the needed information is
available.

Regards,
Ralf



More information about the arch-general mailing list