You are not logged in.

#1 2011-08-05 02:47:24

gbc921
Member
From: Brazil
Registered: 2011-08-05
Posts: 64
Website

[SOLVED] Question - Install various packages

Hello, I've been using Arch since a while and I have a doubt in pacman:

How can I install multiple packages in the same context? For example, to install all xorg packages I would do it:

sudo pacman -S xorg-*

with asterisk like searching something.

But, this is not the way. Have a correctly way to do this, maybe aggregating some search instead of asterisk?

Thanks.

Last edited by gbc921 (2011-08-05 03:33:25)


- "Nothing is impossible, impossible just takes longer"
- My Arch Linux Mirror located in São Paulo, Brazil: http://archmirror.duckdns.org:9000/

Offline

#2 2011-08-05 02:53:21

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Question - Install various packages

Well, it's a bad example because there's an xorg group (which should be avoided), but ignore that and roll with it... Keep in mind that pacman supports regex, not globbing.

$ pacman -Ss ^xorg- | sudo pacman -S -

Offline

#3 2011-08-05 03:10:57

gbc921
Member
From: Brazil
Registered: 2011-08-05
Posts: 64
Website

Re: [SOLVED] Question - Install various packages

Yes, I've thought about that after I posted it! Rs

However I tried it with the xorg-server and it did work just for the first package, not for all.

I tried this:

$ pacman -Ss ^xorg-server | sudo pacman -S --needed -
warning: xorg-server-1.10.3-2 is up to date -- skipping
error: target not found: 1.10.3-2

Assuming that I "want" to install all this packages:

extra/xorg-server
extra/xorg-server-common
extra/xorg-server-devel
extra/xorg-server-utils

... and so on

What I've done wrong?!

Thanks!


- "Nothing is impossible, impossible just takes longer"
- My Arch Linux Mirror located in São Paulo, Brazil: http://archmirror.duckdns.org:9000/

Offline

#4 2011-08-05 03:11:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Question - Install various packages

Sorry, -Ssq. Look at the output with and without the -q to see why.

Last edited by falconindy (2011-08-05 03:12:05)

Offline

#5 2011-08-05 03:27:46

gbc921
Member
From: Brazil
Registered: 2011-08-05
Posts: 64
Website

Re: [SOLVED] Question - Install various packages

Oh! Now it works! Haha
I've seen the difference!

Thanks!

PS.: How can I put [Solved] to this topic?! I've not found how to edit the topic's title or put a "flag" to this. I have just to unsubscribe to this topic?
Or in this topic I do not need to put it? (Yes, I'm new to the forum. Haha)
Thanks again.

Last edited by gbc921 (2011-08-05 03:28:37)


- "Nothing is impossible, impossible just takes longer"
- My Arch Linux Mirror located in São Paulo, Brazil: http://archmirror.duckdns.org:9000/

Offline

#6 2011-08-05 03:32:12

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Question - Install various packages

To mark a topic solved just edit your title by editing your first post and append/prepend [solved] to the title.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2011-08-05 03:35:28

gbc921
Member
From: Brazil
Registered: 2011-08-05
Posts: 64
Website

Re: [SOLVED] Question - Install various packages

Thanks!
I've done it!


- "Nothing is impossible, impossible just takes longer"
- My Arch Linux Mirror located in São Paulo, Brazil: http://archmirror.duckdns.org:9000/

Offline

Board footer

Powered by FluxBB