Uninstall packages in Mac OS X

Use this command in terminal for check the list of package and uninstalled your files. $ pkgutil –pkgs # list all installed packages Once you’ve uninstalled the files, you can remove the receipt with: $ sudo pkgutil –forget the-package-name.pkg After visually inspecting the list of files you can do something like: $ pkgutil –pkg-info the-package-name.pkg … Read more

How to unpack and pack pkg file?

Packages are just .xar archives with a different extension and a specified file hierarchy. Unfortunately, part of that file hierarchy is a cpio.gz archive of the actual installables, and usually that’s what you want to edit. And there’s also a Bom file that includes information on the files inside that cpio archive, and a PackageInfo … Read more

How do I uninstall nodejs installed from pkg (Mac OS X)?

I ran: lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom \ | while read i; do sudo rm /usr/local/${i} done sudo rm -rf /usr/local/lib/node \ /usr/local/lib/node_modules \ /var/db/receipts/org.nodejs.* Coded into gist 2697848 Update It seems the receipts .bom file name may have changed so you may need to replace org.nodejs.pkg.bom with org.nodejs.node.pkg.bom in the above. The gist … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)