Sometimes we have to install new software that comes only into a form of .pkg .
Sadly when we are done with it and decide to uninstall, developers didn’t took this into account, leaving all kind of files in our system.
This line of code tries to take care of those files.
lsbom -f -l -s /Library/Receipts/package_here.pkg/Contents/Archive.bom | (cd /; sudo xargs rm)
Nice one :)
Thank you!