How to uninstall pkg in macOS
Remove pkg manually
- Check the package ID using
$pkgutil --pkgs$ pkgutil --pkgs ... com.oll.pkg.CCRuntime com.AntiCC.RiD com.hciso.AntiCC ... - Get the location of the pkg you want to delete using
$pkgutil --pkg-info <pkg id>$ pkgutil --pkg-info com.oll.pkg.CCRuntime package-id: com.oll.pkg.CCRuntime version: 2023.1 volume: / location: install-time: 1724439281 - Delete
.bomand all the files in the pkg location To delete the.bomfiles$ lsbom -fls /private/var/db/receipts/com.oll.pkg.CCRuntimethe
.bomfiles of all the pkg installed are located at/private/var/db/receipts. The install history is recorded at/Library/Receipts/InstallHistory.plist. Then delete all the files in the pkg location$ lsbom -fls /private/var/db/receipts/com.oll.pkg.CCRuntime | (cd /; sudo xargs rm) $ lsbom -fls /private/var/db/receipts/com.oll.pkg.CCRuntime | (cd /; sudo xargs rm -r) - Remove the pkg information at the end
$ sudo pkgutil --forget com.oll.pkg.CCRuntimeUse UninstallPKG
UninstallPKG is an application that allows you to completely remove
.pkgand all their installed contents. Install from Homebrewbrew install --cask uninstallpkgor from their website.
Reference: https://kyle.ai/blog/6175.html
Enjoy Reading This Article?
Here are some more articles you might like to read next: