#!/bin/bash
#
# display a list of packages containing the
# shared objects this package is linked against.
#

make needed 2>/dev/null | awk '/NEEDED/{print $2}' |
              xargs -i grep {} /var/log/packages/* |
              cut -f1 -d: | sort -u |
              xargs -r -n1 basename

