- using
pkgutil
# list all your installed packages
pkgutil --pkgs
# show your package info
pkgutil --pkg-info <your-package-id>
# list your package files
pkgutil --files <your-package-id>
# change to the directory which your package is installed into
cd /
# remote files
pkgutil --only-files --files <your-package-id> | tr '\n' '\0' | xargs -n 1 -0 sudo rm -if
# remote directories
pkgutil --only-dirs --files <your-package-id> | tail -r | tr '\n' '\0' | xargs -n 1 -0 sudo rmdir
Hi, is it a typo in your comments "# remote files" (that should be "# remove files", same for directories?
If it is not a mistake - why the word "remote" and what does it mean in this context?