

Enter the appropriate info, then click Create. A name and location window similar to the previous instructions will popup. Navigate to the location of your ONEPKG file.

Perhaps it was removed because it was deemed too dangerous. On the search Open Notebook window, click on the dropdown box on the lower right side, just above the Open and Cancel Buttons. $ pkgutil -only-dirs -files the-package-name.pkg | tr '\n' '\0' | xargs -o -n 1 -0 sudo rm -irĪpparently, there was once an -unlink option available in pkgutil, but as of Lion it is not mentioned in the man page. ☠️ Beware! Modifying the filesystem with root privileges can be hazardous. For smaller packages it is probably safer to just manually remove the files after visually inspecting the package file listing. Particularly, be aware that some packages may update shared system components, so uninstalling them can actually break your system by removing a necessary component.
#HOW TO OPEN PKG ON MAC INSTALL#
To install the program from a PKG file, double-click the file. You can view the contents of the PKG file on your Mac without installing it by right clicking on the file and selecting 'Show package content' in the context menu. Nevertheless - and needless to say - extreme care should always be taken when removing files with root privileges. You can open PKG file and install it by either double-clicking on it or Ctrl-clicking on the PKG file and selecting 'Open with.->Installer.app'. The following command could the be used to attempt removal of each directory, although be aware that when System Integrity Protection is active, there are some file paths that not even the root user may modify. To remove directories as well as files, list the directories from the package using: $ pkgutil -only-dirs -files the-package-name.pkg

$ pkgutil -only-files -files the-package-name.pkg | tr '\n' '\0' | xargs -o -n 1 -0 sudo rm -i $ pkgutil -pkg-info the-package-name.pkg # check the location $ cd / # assuming the package is rooted at /. $ pkgutil -pkgs # list all installed packages $ pkgutil -files the-package-name.pkg # list installed filesĪfter visually inspecting the list of files you can do something like the following: In Snow Leopard, that location changed to /private/var/db/receipts.Īt some point - I’m not sure which - Apple added an easier-to-use solution in the form of pkgutil.
#HOW TO OPEN PKG ON MAC MAC OS X#
It used to be the case that you could install packages on Mac OS X by using lsbom to inspect the list of installed files recorded in the files under /Library/Receipts.
