Uninstall a application installed from a package .pkg file








If you install a application from .pkg file, it will be recorded into the /Library/Receipts/InstallHistory.plist. Open the file and search for the entry for the corresponding package, for example, I installed a package called Chef, open /Library/Receipts/InstallHistory.plist, you can find the entry:
    <dict>
        <key>date</key>
        <date>2014-04-25T05:28:12Z</date>
        <key>displayName</key>
        <string>Chef</string>
        <key>displayVersion</key>
        <string></string>
        <key>packageIdentifiers</key>
        <array>
            <string>com.getchef.pkg.chef</string>
        </array>
        <key>processName</key>
        <string>installer</string>
    </dict>
com.getchef.pkg.chef is the bom file name in /private/var/db/receipts/com.getchef.pkg.chef.bom, run the following command:
lsbom -fls /private/var/db/receipts/com.getchef.pkg.chef.bom

see also




No comments:

Post a Comment