[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Local webserver for testing, needed



On Sun, 11 Feb 2007 09:35:09 -0600
Dave Sherohman <esper@sherohman.org> wrote:

> On Sat, Feb 10, 2007 at 05:43:30PM +0200, Andrei Popescu wrote:
> > On Sat, 10 Feb 2007 09:22:21 -0600
> > Dave Sherohman <esper@sherohman.org> wrote:
> > > [1]  Is there a switch I'm not aware of that causes a search for,
> > > say, php to return just the actual php packages (i.e., php3 and
> > > php4) instead of all the hundreds of phpgroupware-* and other
> > > packages that use php?
> > 
> > From 'man apt-cache'
> > 
> > --names-only, -n
> > Only search on the package names, not the long descriptions.
> > Configuration Item: APT::Cache::NamesOnly.
> 
> The "phpgroupware-*" names still match "php".  Granted, that (or the
> grep that I normally use instead) takes it down from 314 matches to
> 144, but that's still a lot more than just the actual php packages.

It probably treats 'php' as 'php*'. If you want regex you have to use
one, just like in the other post. I know this might be against pure
geek way, but sometimes it is nice to just
'apt-cache search some_partial_string' and get meaningful results.

Regards, 
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)



Reply to: