You are not logged in.
Hi ,
I guess it's a pretty noobish question but I wonder how to install multiple packages
that have the same prefix with Pacman.
To make myself more clear, I like to install all gstreamer packages and for that I would
like something similar to
pacman -S gstreamer10*Is there a command that does something like this available? Found nothing in the man pages.
Maybe some tricky stuff with pipes?
Offline
What you could do is search for each package containing gstreamer10, next extract only those names starting with gstreamer10, next install the results:
pacman -S $(pacman -Ss gstreamer10 | sed 's#^\(gstreamer10[^ ]*\) .*$#\1#')Hope that helps you ![]()
Offline
Hi ibendiben,
thanks for your help, but I'm afraid, it does not work ![]()
[root@localhost ~]# pacman -S $(pacman -Ss gstreamer0.10 | sed 's#^\(gstreamer0.10[^ ]*\) .*$#\1#')
Warnung: gstreamer0.10-0.10.15-1 ist aktuell -- Überspringe
Fehler: '0.10.15-1': nicht in Sync-DB gefunden
[root@localhost ~]#Offline
pacman -S $(pacman -Ssq gstreamer0.10)
Last edited by Purch (2008-03-03 20:25:30)
Offline
Since I want everyone to hav the texlive packages installed, I give you the following example:
pacman -S `pacman -Ss texlive |awk -F\/ '{print $2}'| awk '{print $1}'`Offline
When you need only some stuff:
# pacman -S gstreamer0.10-{mad,mms,mpeg2dec,mpeg2enc,musepack}I need real, proper pen and paper for this.
Offline
There is a less interesting but nevertheless useful alternative for the specific gstreamer example, which is to use the package group:
pacman -S gstreamer0.10-plugins(get a list of all package groups with pacman -Sgg).
Offline
Hi ibendiben,
thanks for your help, but I'm afraid, it does not work
I'm so sorry, my fault, I couln't test it, and made some big mistakes.
This time it's working:
pacman -S $(pacman -Ss gstreamer0.10 | sed -n 's#^\([^/]*/gstreamer0.10[^ ]*\) .*$#\1#p')![]()
Offline