|
|
Look inside pkg files without expanding them
These types of scripts have been written before:
StaticInnerClass/testuser published his whichbom script here: http://discussions.info.apple.com/WebX?128@181.LBFmatSikvJ.4@.3bc14c1e #!/bin/sh
for file in `ls /Library/Receipts/`
do
exists=`lsbom -p sfMUG /Library/Receipts/${file}/Contents/Archive.bom 2> /dev/null | egrep "$1" `
if [ -n "$exists" ]; then
echo "Found in ${file}:"
echo "$exists"
echo ""
fi
done
Usage: to find the parent package of a file:
whichbom `which command`And the inimitable Gary Kerbaugh has his pkggrep script here: http://www.cs.ecu.edu/~kerbaugh/pkggrep.tar.gz "It's been way to long since I've done a shameless ad. Did you use my pkggrep script? If not, you might want to check it out. For the most, searching a single package receipt is a one-liner and searching all of them, a short loop. However, the creator of Pacifist suggested a number of options that might be useful. Thus, it's a little bloated but allows you customize your search quite a bit. Anyway, if you don't have it, you should at least look at it; any suggestions would be greatly appreciated!" |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|