pkgsrc tips (Was Re: Proper choice of package management strategy)

Amadeus amadeus.stevenson at gmail.com
Sun Jan 21 09:26:21 PST 2007


Dan Nicholson wrote:
> On 1/21/07, Amadeus <amadeus.stevenson at gmail.com> wrote:
>   
>> $ ldd `which bash` | sed -e 's/([^ ]*)//' -e 's/ //g' | awk -F=\>
>> '$2!="" {print $2}'/lib/libc.so.6
>>     
>
> This works too:
>
> [ 9:08 AM dan at conor] ldd /bin/bash | awk '/=> \//{print $3}'
> /lib/libreadline.so.5
> /lib/libhistory.so.5
> /lib/libncursesw.so.5
> /lib/libdl.so.2
> /lib/libc.so.6
>   
That's much more elegant; thanks.

Amadeus



More information about the lfs-support mailing list