Mac OSX Uninstall PKG Pack

Source: Internet
Author: User

Most applications on Mac OSX are passed. DMG or. Pkg to install (of course, except for the brew installation), if it is installed through the DMG software, to delete it is quite simple, directly from the OSX application folder deleted.

Then how can the pkg installation software be deleted?

Mac does not provide a quick way to delete, we can only find the PKG after the installation of the file, and then delete it.

Way One

Mac will maintain a PKG installation history, as long as you find that folder, we can be the right remedy.

My machine is OSX 10.8.4,pkg history installation list in the/private/var/db/receipts directory, listing the directory, you can see something similar to the following:

-rw-r–r–1 root Wheel 47315 6 15:48 Com.codeius.izip.bom
-rw-r–r–1 root Wheel 253 6 15:48 com.codeius.izip.plist
After locating the. bom file, we can use the following command to locate the list of installed files:

LSBOM-PF Com.codeius.izip.bom
After executing the above command, the output resembles the following:

/izip.app
./izip.app/contents
./izip.app/contents/coderesources
./izip.app/contents/frameworks
./izip.app/contents/frameworks/libarchive.2.dylib
./izip.app/contents/frameworks/libcurl.framework
./izip.app/contents/frameworks/libcurl.framework/headers
./izip.app/contents/frameworks/libcurl.framework/resources
./izip.app/contents/frameworks/libcurl.framework/versions
./izip.app/contents/frameworks/libcurl.framework/versions/a
./izip.app/contents/frameworks/libcurl.framework/versions/a/coderesources
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curl.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlbuild.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlbuild32.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlbuild64.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlrules.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlver.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/easy.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/mprintf.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/multi.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/stdcheaders.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/typecheck-gcc.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/types.h
./izip.app/contents/frameworks/libcurl.framework/versions/a/resources
./izip.app/contents/frameworks/libcurl.framework/versions/a/resources/info.plist
./izip.app/contents/frameworks/libcurl.framework/versions/a/_codesignature
./izip.app/contents/frameworks/libcurl.framework/versions/a/_codesignature/coderesources
./izip.app/contents/frameworks/libcurl.framework/versions/a/libcurl
./izip.app/contents/frameworks/libcurl.framework/versions/current
./izip.app/contents/frameworks/libcurl.framework/libcurl
./izip.app/contents/info.plist
./izip.app/contents/macos
./izip.app/contents/macos/izip
./izip.app/contents/pkginfo
./izip.app/contents/resources
...
The above found these files, is the installation of Pkg when the file generated, these files deleted should be OK! (at your own risk!) )

Way Two

Mode one although feasible, but a lot of people complain about not finding the PKG installation History list directory (indeed different versions of the system, the directory is not the same), then try the way two as follows:

The Pkgutil command will come in handy at this time. The usual, check the help first, execute the pkgutil directly on the command line and see what we can use (excerpt):

Receipt Database Commands:
–pkgs,–packages List all currently installed package IDs On–volume
–pkgs-plist List All package IDs on–volume in plist format
...
–files PKGID List files installed by the specified package
...
Let's look for the PKG package name we want to remove (take the izip as an example):

pkgutil–pkgs | Grep-i Izip
Look at what the output is:

Com.codeius.izip
OK, now you can find out what files Izip pkg has installed:

Pkgutil–file Com.codeius.izip
Result of terminal output:

Izip.app
Izip.app/contents
Izip.app/contents/coderesources
Izip.app/contents/frameworks
Izip.app/contents/frameworks/libarchive.2.dylib
Izip.app/contents/frameworks/libcurl.framework
Izip.app/contents/frameworks/libcurl.framework/headers
Izip.app/contents/frameworks/libcurl.framework/resources
Izip.app/contents/frameworks/libcurl.framework/versions
izip.app/contents/frameworks/libcurl.framework/versions/a
Izip.app/contents/frameworks/libcurl.framework/versions/a/coderesources
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curl.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlbuild.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlbuild32.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlbuild64.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlrules.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/curlver.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/easy.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/mprintf.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/multi.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/stdcheaders.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/typecheck-gcc.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/headers/curl/types.h
Izip.app/contents/frameworks/libcurl.framework/versions/a/resources
Izip.app/contents/frameworks/libcurl.framework/versions/a/resources/info.plist
Izip.app/contents/frameworks/libcurl.framework/versions/a/_codesignature
Izip.app/contents/frameworks/libcurl.framework/versions/a/_codesignature/coderesources
Izip.app/contents/frameworks/libcurl.framework/versions/a/libcurl
Izip.app/contents/frameworks/libcurl.framework/versions/current
Izip.app/contents/frameworks/libcurl.framework/libcurl
Izip.app/contents/info.plist
Izip.app/contents/macos
Izip.app/contents/macos/izip
Izip.app/contents/pkginfo
Izip.app/contents/resources
...
Delete these files should be uninstalled. (Risk on your own!)

Mode three

Haha, some people to pay attention to efficiency, do not like to toss half a day, will ask can be a key to get it? Really don't say, also really have http://www.corecode.at/uninstallpkg/, accidentally found this thing, looks good, tried it, as if really successfully uninstalled. (Just don't know if it's clean ...) )


Mac OSX Uninstall PKG Pack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.