[Slapt-get-user] How does search work?

Scott Lockwood wsl3 at lrsehosting.com
Sun Jun 25 09:49:50 EDT 2006


Try "^lvm2*" as your search expression. 

-----Original Message-----
From: slapt-get-user-bounces at jaos.org
[mailto:slapt-get-user-bounces at jaos.org] On Behalf Of Per Börjesson
Sent: Sunday, June 25, 2006 7:18 AM
To: Slapt-get User
Subject: [Slapt-get-user] How does search work?

Hi,

I'm using lvm2 so I want to avoid lvm. I can do:

kernel 26% slapt-get --search lvm
lvm-1.0.8-i486-1 [inst=no]: lvm (Logical Volume Manager)
device-mapper-1.01.04-i486-1 [inst=yes]: device-mapper (device-mapper for
logical volume management)
lvm2-2.01.09-i486-1 [inst=yes]: lvm2 (Logical Volume Manager version 2)

My knowledge of regular expressions is very poor, but I used
www.regular-expressions.info to figure out that I could try

kernel 37% slapt-get --search ^lvm
lvm-1.0.8-i486-1 [inst=no]: lvm (Logical Volume Manager)
lvm2-2.01.09-i486-1 [inst=yes]: lvm2 (Logical Volume Manager version 2)

OK, so it doesn't bother with device-mapper now. Next I did

kernel 38% slapt-get --search ^lvm-

...and I got nothing! Why doesn't it find "lvm-1.0.8-i486-1"?

I used the search-forward-regexp function in emacs and there ^lvm- certainly
matched "lvm-1.0.8-i486-1"
but not "lvm2-2.01.09-i486-1"!

OK, I then tried

kernel 39% slapt-get --search ^lvm-[0-9]

...and I got a huge list of what seems to be irrelevant packages but
"lvm-1.0.8-i486-1"
was not in the list. I suspected that the shell was expanding my arguments
so I tried

kernel 63% slapt-get --search '^lvm-[0-9]'

...and nothing. I tried

kernel 65% slapt-get --search '^lvm-[0-9].+'

...and nothing.

The man page states that "names, locations, and descriptions of packages"
are searched.
So, shouldn't I at least find the name "lvm-1.0.8-i486-1"?

Regards
Per
_______________________________________________
Slapt-get-user mailing list
Slapt-get-user at software.jaos.org
http://software.jaos.org/cgi-bin/mailman/listinfo/slapt-get-user




More information about the Slapt-get-user mailing list