![]() This is one way to do a complete removal.ĭMG are not installer files. Most of them do a search in known directories (like /Library/Preferences, /Library/Application Support etc) with the app name/pkg name or bundle identifier. There are few uninstall/cleaner apps available on OS X. The links given below will give you some info It can extract the scripts and other related information. As a layman we cannot go ahead and uninstall a PKG.īut at the same time there are command lines that can do a complete reverse engineering on PKG files. What is done in PKG scripts is always upto the PKG creator. #Uninstallpkg mac installA PKG/MPKG can have certain pre install and post install scripts associated with that. The concept of PKG uninstallation is not there in OS X. Once you've uninstalled the files, you can remove the system record of that package: $ sudo pkgutil -forget package-name.pkg But some people will need to tweak the command line, so it's better to be clear!) $ pkgutil -only-dirs -files package-name.pkg | tr '\n' '\0' | xargs -n 1 -0 -p sudo rmdir (You should be safe with rmdir too, because it will only remove empty directories. p causes xargs to prompt for confirmation, but don't get trigger-happy. ![]() The list of directories output by pkgutil -files can include important shared directories like usr, which you don't want to remove. $ pkgutil -only-files -files package-name.pkg | tr '\n' '\0' | xargs -n 1 -0 -p sudo rmīe careful of the next (final) step, which removes directories. Use this to list the package's installed files: $ pkgutil -files package-name.pkgĪfter visually inspecting the list of files you can do something like this to remove them: $ cd / # assuming the package location is / To find the package location (the root directory that all file listings will be relative to), use $ pkgutil -pkg-info package-name.pkg I'm modifying answer, which didn't work for me.Īt a command line, use the following to find the desired package name: $ pkgutil -pkgs | grep -i is a string you expect to see in the package name. $ pkgutil -only-dirs -files the-package-name.pkg | tr '\n' '\0' | xargs -n 1 -0 sudo rm -irĬopied from here (Wayback Machine snapshot of the original) $ pkgutil -only-files -files the-package-name.pkg | tr '\n' '\0' | xargs -n 1 -0 sudo rm -iīe careful of this last step. $ cd / # assuming the package is rooted at /. Once you've uninstalled the files, you can remove the receipt with: $ sudo pkgutil -forget the-package-name.pkgĪfter visually inspecting the list of files you can do something like: $ pkgutil -pkg-info the-package-name.pkg # check the location ![]() ![]() $ pkgutil -pkgs # list all installed packages Use this command in terminal for check the list of package and uninstalled your files. dmg files also require third party applications or is it possible to uninstall them entering a command in the terminal? #Uninstallpkg mac macpkg package on my Mac and I am wondering as to how I can uninstall the entire package without using a third party application such as UninstallPKG? #Uninstallpkg mac mac osHow can you completely uninstall (remove files that belong to a certain package) in Mac OS X? Can this be done using a command in the terminal? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |