You are not logged in.

#1 2011-05-09 05:42:50

thelastblack
Member
Registered: 2010-11-14
Posts: 43

[SOLVED] wildcards in pacman

hi
i was thinking about wildcards in pacman... searched a bit but nothing found...
someone somewhere said it doesnt support wildcards and i know it doesnt supprot * or ? but nothing else? like {} or anything?
thx

Last edited by thelastblack (2011-05-11 07:12:05)

Offline

#2 2011-05-09 06:15:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] wildcards in pacman

pacman man page wrote:

       -s, --search <regexp>
           Search each locally-installed package for names or descriptions that
           match regexp. When including multiple search terms, only packages with
           descriptions matching ALL of those terms are returned.

regexp == Regular Expressions, plenty of relevant info available about that.

Offline

#3 2011-05-09 13:20:12

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

Re: [SOLVED] wildcards in pacman

I hate to be pedantic, but i think its important to distinguish here. * and ? are not regex expressions, they're globbing characters. Searching for foo* will work, but it's not really searching for what you want (fo, followed by 0 or many additional 'o' characters). additionally, pacman supports the full POSIX extended regex grammar, which is documented in glorious detail by the section 7 manpage 'regex'.

Last edited by falconindy (2011-05-09 13:20:48)

Offline

#4 2011-05-10 09:07:19

thelastblack
Member
Registered: 2010-11-14
Posts: 43

Re: [SOLVED] wildcards in pacman

i used -s but it just shows a list, how to install them automatically?

Offline

#5 2011-05-10 14:10:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] wildcards in pacman

thelastblack wrote:

i used -s but it just shows a list, how to install them automatically?

You mean

sudo pacman -S $(pacman -Ssq foo)

?

Offline

#6 2011-05-11 07:11:36

thelastblack
Member
Registered: 2010-11-14
Posts: 43

Re: [SOLVED] wildcards in pacman

should work... thx

Offline

Board footer

Powered by FluxBB