[Slapt-get-user] How does search work?
Per Börjesson
sky at hi.eclipse.co.uk
Sun Jun 25 08:18:12 EDT 2006
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
More information about the Slapt-get-user
mailing list