You are not logged in.

#1 2008-04-09 13:32:11

raul_nds
Member
From: Lisbon, Portugal
Registered: 2007-06-28
Posts: 258

Can pacman search for 2 different keyword at the same time?

I'm sure this is possible, maybe not only with pacman (but grep or something)

The other day I was searching for a KDE image viewer.

pacman -Ss kde (about 3 pages of results)

pacman -Ss image (about 1 or 2 pages of results)

pacman -Ss kde | grep image (in some packages only the description is printed out, so I end up not knowing the package name)

Is there a better way to filter results? Maybe pacman could have something like a +, and one could do something like

pacman -Ss kde + image

Offline

#2 2008-04-09 13:33:05

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Can pacman search for 2 different keyword at the same time?

Offline

#3 2008-04-09 13:36:12

raul_nds
Member
From: Lisbon, Portugal
Registered: 2007-06-28
Posts: 258

Re: Can pacman search for 2 different keyword at the same time?

ah! sweet smile thanks. I wonder why this didn't appear when I searched the forums. It's all about keywords I guess....

Offline

#4 2008-04-09 14:58:52

danielsoft
Member
From: Czech Republic
Registered: 2008-02-16
Posts: 102

Re: Can pacman search for 2 different keyword at the same time?

I use something like this

pacman -Ss one | grep -B 1 two

grep -B 1 prints one line before the line it grepped...


may the Source be with you

Offline

Board footer

Powered by FluxBB