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

Re: eliminate subwords in dpkg --search?



This one time, at band camp, Marcel Fehr said:
> hi there
> 
> How do I search for a explicied pattern within all my installed
> packages?
> 
> for e.g if I want to look which package owns the command cu, a "dpkg
> -S cu" will list all package where's a pattern starting with cu (cups,
> custom, ...  same as I would do "dpkg -S cu*"). Is there a way to
> limit that?

dpkg -S `which cu`

> And is it possible to shapen the scope so that it looks into all
> available packages on the installation medium rather into the
> installed ones only?  Would avoid to check
> http://www.debian.org/distrib/packages#search_contents all the times
> :).

apt-file update 
apt-file search <pattern>

> thx in advanced, Marcel

HTH,
Steve
-- 
Why can't you be a non-conformist like everyone else?

Attachment: pgpNbvbfywHI2.pgp
Description: PGP signature


Reply to: