You are not logged in.

#1 2009-09-06 08:05:03

jimmy the saint
Member
Registered: 2009-04-10
Posts: 41

use pacman to install all gstreamer plugins quickly

I figure pacman is a great tool created by great people.  Is there a way to install a whole lot of packages that are similar, like gstreamer plugins for example, quickly, without typing each one individually?

Offline

#2 2009-09-06 08:14:05

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: use pacman to install all gstreamer plugins quickly

pacman -S --needed $(pacman -Ssq gstreamer0.10)

Offline

#3 2009-09-06 08:55:56

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: use pacman to install all gstreamer plugins quickly

That doesn't quite work, Allan. The output of pacman -Ssq pkgname shows the size of the package also.

> pacman -Ssq gstreamer0.10
gstreamer0.10 [2.15 MB]
gstreamer0.10-bad [1.02 MB]
gstreamer0.10-bad-plugins [0.47 MB]
gstreamer0.10-base [1.41 MB]
gstreamer0.10-base-plugins [0.22 MB]
gstreamer0.10-ffmpeg [2.51 MB]
gstreamer0.10-good [1.05 MB]
gstreamer0.10-good-plugins [0.40 MB]
gstreamer0.10-python [0.36 MB]
gstreamer0.10-ugly [0.22 MB]
gstreamer0.10-ugly-plugins [0.12 MB]
gstreamer0.10-pulse [0.03 MB]
> pacman -S --needed $(pacman -Ssq gstreamer0.10)
warning: gstreamer0.10-0.10.24-1 is up to date -- skipping
[2.15 package not found, searching for group...
error: '[2.15': not found in sync db

neutral

Offline

#4 2009-09-06 08:58:10

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: use pacman to install all gstreamer plugins quickly

in this case, what about

pacman -S gstreamer0.10-plugins

gstreamer0.10-plugins package not found, searching for group...
:: group gstreamer0.10-plugins (including ignored packages):
    gstreamer0.10-base-plugins  gstreamer0.10-ffmpeg  gstreamer0.10-good-plugins  gstreamer0.10-ugly-plugins
:: Install whole content? [Y/n]

Last edited by schuay (2009-09-06 08:59:03)

Offline

#5 2009-09-06 08:58:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,383
Website

Re: use pacman to install all gstreamer plugins quickly

Ah - someone is using the ShowSize option in pacman.conf...    if you use that, replace it with

pacman -S --needed $(pacman -Ssqq gstreamer0.10 | cut -f1 -d" ")

Edit: schuay pointed out a much better way...  I did not realise that gstreamer plugins had a group.

Offline

#6 2009-09-06 09:09:28

jimmy the saint
Member
Registered: 2009-04-10
Posts: 41

Re: use pacman to install all gstreamer plugins quickly

Schuay, nice.  At least that saves me typing it a bunch of times.  Only twice, once for this and once for the bad ones.
Thanks

Offline

#7 2009-09-06 09:11:43

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: use pacman to install all gstreamer plugins quickly

jimmy the saint wrote:

Schuay, nice.  At least that saves me typing it a bunch of times.  Only twice, once for this and once for the bad ones.
Thanks

Err, just noticed - how come the bad plugins aren't included in the group?

Offline

#8 2009-09-06 09:56:10

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: use pacman to install all gstreamer plugins quickly

schuay wrote:
jimmy the saint wrote:

Schuay, nice.  At least that saves me typing it a bunch of times.  Only twice, once for this and once for the bad ones.
Thanks

Err, just noticed - how come the bad plugins aren't included in the group?

Because they got sent to the corner to think about what they did.


neutral

Offline

Board footer

Powered by FluxBB