Use the instructions below to remove installed .pkg packages on macOS with the pkgutil command-line tool.
pkgutil is a macOS utility that allows users to inspect and manage installer packages (.pkg). It can be used to:
- List installed packages
- View files installed by a package
- Forget a package (remove its receipt from the system)
This process can help you clean up unused software and ensure future scans don’t report package evidence.
Prerequisites
- macOS system with Terminal access
- Administrative privileges (sudo access)
List installed packages
Open Terminal, then enter:
pkgutil –pkgs
You’ll see a list of package identifiers, such as:
com.apple.pkg.Xcodecom.vendor.pkg.application
View package contents
To see which files a package installed, run:
pkgutil --files com.example.pkg.appname
To view details like the install location, run:
pkgutil --pkg-info com.example.pkg.appname
Remove the package receipt
If you want macOS to forget a package (without removing its files), run:
sudo pkgutil --forget com.example.pkg.appname
This removes the package’s receipt from the system so it no longer appears as installed.
Remove installed files
If you want to delete the files installed by the package, manually remove the paths returned from the “List installed packages” step. For example:
sudo rm -rf /Library/Application\ Support/AppName
sudo rm -rf /Applications/AppName.app
Always confirm the paths before deleting them to avoid removing required system files.
Once the evidence is removed, the next agent scan should not include the evidence in the NDI file.
Related Articles
Installing an Alias for the Uninstaller to the Dock on OS X or macOS Will Fail to be Removed during Uninstall 4Number of Views Inventory gathering ndtrack process may crash with error on MacOS if a bundle metadata contains a non-numeric "install dat… 2Number of Views Why Files Are Not Being Removed During Uninstallation 5Number of Views Inventory gathering ndtrack process may crash with error on MacOS if a bundle metadata contains a non-numeric "last modifi… 7Number of Views Remove stale agent and beacon version packages from the Beacon server 164Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago