4 ms·
macOS also has .pkg installer packages that are native. The only issue is that there is no uninstall functionality built in to them unless the package provides
by lockhouse 4y ago
macOS also has .pkg installer packages that are native. The only issue is that there is no uninstall functionality built in to them unless the package provides their own.
https://en.wikipedia.org/wiki/Installer_(macOS) https://en.wikipedia.org/wiki/Installer_(macOS)
- mdaniel 4y agoThat actually bugged me so much that I made a script to use the manifest to blow away declared files and dirs PKGID="${1:-}" PKG_ROOT="$(pkgutil --pkg-info "$PKGID" \ | awk -F: '/location:/{print $2}' \ | sed -e 's,^[ \t]*,/,')" pkgutil --only-files --files "$PKGID" \ | join_paths_0 "$PKG_ROOT" \ | xargs -0 $dry_run rm -v pkgutil --only-dirs --files "$PKGID" \ | sort -r \ | join_paths_0 "$PKG_ROOT" \ | xargs -0 $dry_run rmdir pkgutil --forget "$PKGID" It still leaves detritus, but is better than "oh well, guess I'm stuck with Rando Thing 0.9beta forever"