On Monday 15 December 2003 12:36, Joel Konkle-Parker wrote:
> Jason Stubbs wrote:
> > On Monday 15 December 2003 12:10, Joel Konkle-Parker wrote:
> >>I'm switching over from OSS to ALSA, so I need to find all the installed
> >>packages that were merged with "-alsa". Is this possible?
> >>
> >>Thanks in advance.
> >
> > # grep -l '-alsa' `find /var/db/pkg/*/*/USE`
>
> Interestingly, this didn't work. Here's the session:
>
> --
> # cat /var/db/pkg/media-sound/esound-0.2.32/USE
> x86 arts avi crypt cups encode foomaticdb gif gpm imlib jpeg libg++
> libwww mad mikmod motif mpeg ncurses nls oggvorbis pdflib png quicktime
> sdl spell svga truetype xml2 xmms xv zlib gdbm berkdb slang readline
> tcpd pam ssl perl python opengl acpi -alsa -apm doc gnome gtk gtk2 java
> -kde mmx oss pnp -qt sse tcltk X
> # grep -l '-alsa' `find /var/db/pkg/*/*/USE`
> #
> --
>
> No output from grep, even though there is obviously a match in
> esound-0.2.32.

Okay, even though a successful answer has already been given, I want to have 
another go to save face ;-) How's the following?

for pkg in /var/db/pkg/*/* ; do grep -q alsa $pkg/IUSE && grep -L alsa 
$pkg/USE ; done

-- 
Regards,
Jason Stubbs

--
[EMAIL PROTECTED] mailing list

Reply via email to