#!/bin/bash ##################################################################################### # Program: armedslack-current/source/a/aaa_elflibs/find_elflibpackages # Purpose: Associate the libraries contained within Slackware's aaa_elflibs package # with Slackware package names. # Author : Stuart Winter # Date...: 31-May-04 # Version: 1.00 ##################################################################################### # Notes: # [1] You should run this on an x86 Slackware box. # TMP=/tmp/aaa_elflibs_extract CWD=$PWD rm -rf $TMP mkdir -p $TMP # Let's assume that Slackware x86's aaa_elflibs package is in the pwd. tar zxf $CWD/aaa_elflibs-*.tgz -C$TMP cd $TMP find . -not \( -path './install/*' -prune \) -mindepth 1 -type f -printf "%f\n" | ( while read lib ; do ( cd /var/log/packages && grep $lib * ) ; done ) | sort | fgrep -v aaa_elflibs- | uniq #for i in * ; do ( cd /var/log/packages && grep $i * ) ; done | sort | fgrep -v elflibs-9.1 | uniq