How do I uninstall any Apple pkg Package file?












48















Despite opinions to the contrary, not all packages are installed cleanly in only one directory. Is there a way to reverse the install process of a pkg file, preferably with the original package (or from a repository of information about installed packages)?



Specifically I've installed the PowerPC MySQL 5.4.1 package on an intel MacBook, and would like to cleanly reverse that, recovering the 5.1 x86 install I can see is still there, but not working properly now.










share|improve this question





























    48















    Despite opinions to the contrary, not all packages are installed cleanly in only one directory. Is there a way to reverse the install process of a pkg file, preferably with the original package (or from a repository of information about installed packages)?



    Specifically I've installed the PowerPC MySQL 5.4.1 package on an intel MacBook, and would like to cleanly reverse that, recovering the 5.1 x86 install I can see is still there, but not working properly now.










    share|improve this question



























      48












      48








      48


      48






      Despite opinions to the contrary, not all packages are installed cleanly in only one directory. Is there a way to reverse the install process of a pkg file, preferably with the original package (or from a repository of information about installed packages)?



      Specifically I've installed the PowerPC MySQL 5.4.1 package on an intel MacBook, and would like to cleanly reverse that, recovering the 5.1 x86 install I can see is still there, but not working properly now.










      share|improve this question
















      Despite opinions to the contrary, not all packages are installed cleanly in only one directory. Is there a way to reverse the install process of a pkg file, preferably with the original package (or from a repository of information about installed packages)?



      Specifically I've installed the PowerPC MySQL 5.4.1 package on an intel MacBook, and would like to cleanly reverse that, recovering the 5.1 x86 install I can see is still there, but not working properly now.







      mac uninstall packages






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 '17 at 10:04









      Community

      1




      1










      asked Sep 6 '09 at 9:02









      dlamblindlamblin

      6,11274052




      6,11274052






















          6 Answers
          6






          active

          oldest

          votes


















          79














          https://wincent.com/wiki/Uninstalling_packages_(.pkg_files)_on_Mac_OS_X describes how to uninstall .pkg using native pkgutil.



          Modified excerpt



          $ pkgutil --pkgs # list all installed packages
          $ pkgutil --files the-package-name.pkg # list installed files


          After visually inspecting the list of files you can do something like:



          $ pkgutil --pkg-info the-package-name.pkg # check the location
          $ cd / # assuming the package is rooted at /...
          $ pkgutil --only-files --files the-package-name.pkg | tr 'n' '' | xargs -n 1 -0 sudo rm -f
          $ pkgutil --only-dirs --files the-package-name.pkg | tail -r | tr 'n' '' | xargs -n 1 -0 sudo rmdir


          Needless to say, extreme care should always be taken when removing files with root privileges. Particularly, be aware that some packages may update shared system components, so uninstalling them can actually break your system by removing a necessary component.



          For smaller packages it is probably safer to just manually remove the files after visually inspecting the package file listing.



          Apparently, there was once an --unlink option available in pkgutil, but as of Lion it is not mentioned in the man page. Perhaps it was removed because it was deemed too dangerous.



          Once you've uninstalled the files, you can remove the receipt with:



          $ sudo pkgutil --forget the-package-name.pkg





          share|improve this answer





















          • 1





            I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

            – Sam Mason
            Oct 13 '14 at 13:43






          • 15





            DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

            – FiloSottile
            Nov 16 '14 at 16:56






          • 2





            I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

            – brablc
            Nov 17 '14 at 18:11






          • 1





            ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

            – cmroanirgo
            Feb 13 '15 at 2:26











          • One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

            – James McMahon
            Nov 25 '16 at 22:27



















          18














          Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually.



          The best method to determine what files have been installed is to get a hold of the original .pkg if possible. If this is not possible you can also use the receipts instead found at /Library/Receipts. Your biggest issue is when you are dealing with a .mpkg which contains multiple .pkg files as you will then have to find all the seperate .pkg files in that folder (thankfully not that difficult when sorted by date).



          Once you have the .pkg file (Receipt or the full install file) you can then use a utility to either create the uninstaller or find the files so you can remove them manually:



          Uninstaller



          Absolute Software InstallEase is a free program that can create uninstallers from existing .pkg files. Make the uninstaller .pkg file (note: You'll need Apple's Developer Tools installed to actually make the .pkg file)



          Manually



          Using a program such as Pacifist or a QuickLook plugin like Suspicious Package you can view what files are installed and at what location. Using that list you can then manually navigate to those folders and remove the files. I've used this method personally countless times before I discovered InstallEase, but this is still often faster if the install isn't spread out among many locations.






          share|improve this answer


























          • Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

            – dlamblin
            Sep 6 '09 at 20:34






          • 4





            Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

            – NobleUplift
            May 1 '14 at 15:21



















          9














          you can also uninstall .pkg packages with UninstallPKG ( http://www.corecode.at/uninstallpkg/ )



          [full disclosure: yes i am the author]






          share|improve this answer
























          • As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

            – fgp
            Oct 17 '14 at 10:40











          • Nice stuff. Thanks for your work.

            – Viacheslav Kovalev
            Jan 17 '17 at 8:54











          • It's worth noting it's not free but does include a free trial

            – Ron E
            Mar 23 '18 at 2:11



















          4














          I made the same wheel last month, It's called Package Uninstaller, open sourced and hosted on github: https://github.com/hewigovens/PackageUninstaller,



          you can download and try it from [here].(http://sourceforge.net/projects/packageuninstaller/files/latest/download)






          share|improve this answer
























          • Worth noting it will only run on 10.7 or higher.

            – Xavi López
            Mar 30 '14 at 21:04











          • Weird that the project owner removed the compiled binary

            – Antony
            Feb 9 '16 at 16:03






          • 1





            The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

            – RichVel
            Jan 13 '17 at 9:09



















          1














          You can try the suggestions from this site: http://www.entropy.ch/software/macosx/mysql/remove-old-mysql.html. Also, there's an article regarding this on the Adobe support site; here's the link: http://support.adobe.com/devsup/devsup.nsf/docs/52355.htm.



          Also, the apps that usually have a pkg file in the dmg usually also have another pkg that is used for uninstalling. I'm not sure if this is true here, but I wanted to let you know to keep the original dmg file.






          share|improve this answer































            1














            I made a shell srcipt



            you can try it



            https://github.com/iamrToday/pkg-remove



            It shows a .gif demo, you can see the source code, just wrap the brablc's command line. You can run it to search infomation , you also can remove apk. It is interactive.






            share|improve this answer


























            • what does it do?

              – Pierre.Vriens
              Jun 12 '18 at 15:09











            • I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

              – rToday Lin
              Jun 13 '18 at 15:27













            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f36567%2fhow-do-i-uninstall-any-apple-pkg-package-file%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            6 Answers
            6






            active

            oldest

            votes








            6 Answers
            6






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            79














            https://wincent.com/wiki/Uninstalling_packages_(.pkg_files)_on_Mac_OS_X describes how to uninstall .pkg using native pkgutil.



            Modified excerpt



            $ pkgutil --pkgs # list all installed packages
            $ pkgutil --files the-package-name.pkg # list installed files


            After visually inspecting the list of files you can do something like:



            $ pkgutil --pkg-info the-package-name.pkg # check the location
            $ cd / # assuming the package is rooted at /...
            $ pkgutil --only-files --files the-package-name.pkg | tr 'n' '' | xargs -n 1 -0 sudo rm -f
            $ pkgutil --only-dirs --files the-package-name.pkg | tail -r | tr 'n' '' | xargs -n 1 -0 sudo rmdir


            Needless to say, extreme care should always be taken when removing files with root privileges. Particularly, be aware that some packages may update shared system components, so uninstalling them can actually break your system by removing a necessary component.



            For smaller packages it is probably safer to just manually remove the files after visually inspecting the package file listing.



            Apparently, there was once an --unlink option available in pkgutil, but as of Lion it is not mentioned in the man page. Perhaps it was removed because it was deemed too dangerous.



            Once you've uninstalled the files, you can remove the receipt with:



            $ sudo pkgutil --forget the-package-name.pkg





            share|improve this answer





















            • 1





              I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

              – Sam Mason
              Oct 13 '14 at 13:43






            • 15





              DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

              – FiloSottile
              Nov 16 '14 at 16:56






            • 2





              I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

              – brablc
              Nov 17 '14 at 18:11






            • 1





              ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

              – cmroanirgo
              Feb 13 '15 at 2:26











            • One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

              – James McMahon
              Nov 25 '16 at 22:27
















            79














            https://wincent.com/wiki/Uninstalling_packages_(.pkg_files)_on_Mac_OS_X describes how to uninstall .pkg using native pkgutil.



            Modified excerpt



            $ pkgutil --pkgs # list all installed packages
            $ pkgutil --files the-package-name.pkg # list installed files


            After visually inspecting the list of files you can do something like:



            $ pkgutil --pkg-info the-package-name.pkg # check the location
            $ cd / # assuming the package is rooted at /...
            $ pkgutil --only-files --files the-package-name.pkg | tr 'n' '' | xargs -n 1 -0 sudo rm -f
            $ pkgutil --only-dirs --files the-package-name.pkg | tail -r | tr 'n' '' | xargs -n 1 -0 sudo rmdir


            Needless to say, extreme care should always be taken when removing files with root privileges. Particularly, be aware that some packages may update shared system components, so uninstalling them can actually break your system by removing a necessary component.



            For smaller packages it is probably safer to just manually remove the files after visually inspecting the package file listing.



            Apparently, there was once an --unlink option available in pkgutil, but as of Lion it is not mentioned in the man page. Perhaps it was removed because it was deemed too dangerous.



            Once you've uninstalled the files, you can remove the receipt with:



            $ sudo pkgutil --forget the-package-name.pkg





            share|improve this answer





















            • 1





              I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

              – Sam Mason
              Oct 13 '14 at 13:43






            • 15





              DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

              – FiloSottile
              Nov 16 '14 at 16:56






            • 2





              I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

              – brablc
              Nov 17 '14 at 18:11






            • 1





              ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

              – cmroanirgo
              Feb 13 '15 at 2:26











            • One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

              – James McMahon
              Nov 25 '16 at 22:27














            79












            79








            79







            https://wincent.com/wiki/Uninstalling_packages_(.pkg_files)_on_Mac_OS_X describes how to uninstall .pkg using native pkgutil.



            Modified excerpt



            $ pkgutil --pkgs # list all installed packages
            $ pkgutil --files the-package-name.pkg # list installed files


            After visually inspecting the list of files you can do something like:



            $ pkgutil --pkg-info the-package-name.pkg # check the location
            $ cd / # assuming the package is rooted at /...
            $ pkgutil --only-files --files the-package-name.pkg | tr 'n' '' | xargs -n 1 -0 sudo rm -f
            $ pkgutil --only-dirs --files the-package-name.pkg | tail -r | tr 'n' '' | xargs -n 1 -0 sudo rmdir


            Needless to say, extreme care should always be taken when removing files with root privileges. Particularly, be aware that some packages may update shared system components, so uninstalling them can actually break your system by removing a necessary component.



            For smaller packages it is probably safer to just manually remove the files after visually inspecting the package file listing.



            Apparently, there was once an --unlink option available in pkgutil, but as of Lion it is not mentioned in the man page. Perhaps it was removed because it was deemed too dangerous.



            Once you've uninstalled the files, you can remove the receipt with:



            $ sudo pkgutil --forget the-package-name.pkg





            share|improve this answer















            https://wincent.com/wiki/Uninstalling_packages_(.pkg_files)_on_Mac_OS_X describes how to uninstall .pkg using native pkgutil.



            Modified excerpt



            $ pkgutil --pkgs # list all installed packages
            $ pkgutil --files the-package-name.pkg # list installed files


            After visually inspecting the list of files you can do something like:



            $ pkgutil --pkg-info the-package-name.pkg # check the location
            $ cd / # assuming the package is rooted at /...
            $ pkgutil --only-files --files the-package-name.pkg | tr 'n' '' | xargs -n 1 -0 sudo rm -f
            $ pkgutil --only-dirs --files the-package-name.pkg | tail -r | tr 'n' '' | xargs -n 1 -0 sudo rmdir


            Needless to say, extreme care should always be taken when removing files with root privileges. Particularly, be aware that some packages may update shared system components, so uninstalling them can actually break your system by removing a necessary component.



            For smaller packages it is probably safer to just manually remove the files after visually inspecting the package file listing.



            Apparently, there was once an --unlink option available in pkgutil, but as of Lion it is not mentioned in the man page. Perhaps it was removed because it was deemed too dangerous.



            Once you've uninstalled the files, you can remove the receipt with:



            $ sudo pkgutil --forget the-package-name.pkg






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 9 at 11:00

























            answered Dec 28 '12 at 21:23









            brablcbrablc

            1,01288




            1,01288








            • 1





              I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

              – Sam Mason
              Oct 13 '14 at 13:43






            • 15





              DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

              – FiloSottile
              Nov 16 '14 at 16:56






            • 2





              I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

              – brablc
              Nov 17 '14 at 18:11






            • 1





              ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

              – cmroanirgo
              Feb 13 '15 at 2:26











            • One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

              – James McMahon
              Nov 25 '16 at 22:27














            • 1





              I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

              – Sam Mason
              Oct 13 '14 at 13:43






            • 15





              DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

              – FiloSottile
              Nov 16 '14 at 16:56






            • 2





              I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

              – brablc
              Nov 17 '14 at 18:11






            • 1





              ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

              – cmroanirgo
              Feb 13 '15 at 2:26











            • One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

              – James McMahon
              Nov 25 '16 at 22:27








            1




            1





            I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

            – Sam Mason
            Oct 13 '14 at 13:43





            I'd recommend using rmdir instead of rm -r; one could also use tac or tail -r to reverse the list of directory names so that they get deleted in the correct order

            – Sam Mason
            Oct 13 '14 at 13:43




            15




            15





            DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

            – FiloSottile
            Nov 16 '14 at 16:56





            DON'T RUN THE sudo rm -ir PART. The list includes the parent directories! So if the pkg installed something in /usr/... you will remove ALL /usr/

            – FiloSottile
            Nov 16 '14 at 16:56




            2




            2





            I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

            – brablc
            Nov 17 '14 at 18:11





            I have changed the command for deleting directories to use rmdir (which does not delete not-empty-directories) and uses tail -r to list them in better order.

            – brablc
            Nov 17 '14 at 18:11




            1




            1





            ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

            – cmroanirgo
            Feb 13 '15 at 2:26





            ironically, when using pgkutil I found an uninstaller.pl tucked away that I could use. Perfect!

            – cmroanirgo
            Feb 13 '15 at 2:26













            One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

            – James McMahon
            Nov 25 '16 at 22:27





            One thing that pkgs don't seem to keep track of is the symlinks created by the pkgs. It's possible that cleaning up the package from the instructions above (or any of the methods here) will leave broken symlinks behind.

            – James McMahon
            Nov 25 '16 at 22:27













            18














            Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually.



            The best method to determine what files have been installed is to get a hold of the original .pkg if possible. If this is not possible you can also use the receipts instead found at /Library/Receipts. Your biggest issue is when you are dealing with a .mpkg which contains multiple .pkg files as you will then have to find all the seperate .pkg files in that folder (thankfully not that difficult when sorted by date).



            Once you have the .pkg file (Receipt or the full install file) you can then use a utility to either create the uninstaller or find the files so you can remove them manually:



            Uninstaller



            Absolute Software InstallEase is a free program that can create uninstallers from existing .pkg files. Make the uninstaller .pkg file (note: You'll need Apple's Developer Tools installed to actually make the .pkg file)



            Manually



            Using a program such as Pacifist or a QuickLook plugin like Suspicious Package you can view what files are installed and at what location. Using that list you can then manually navigate to those folders and remove the files. I've used this method personally countless times before I discovered InstallEase, but this is still often faster if the install isn't spread out among many locations.






            share|improve this answer


























            • Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

              – dlamblin
              Sep 6 '09 at 20:34






            • 4





              Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

              – NobleUplift
              May 1 '14 at 15:21
















            18














            Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually.



            The best method to determine what files have been installed is to get a hold of the original .pkg if possible. If this is not possible you can also use the receipts instead found at /Library/Receipts. Your biggest issue is when you are dealing with a .mpkg which contains multiple .pkg files as you will then have to find all the seperate .pkg files in that folder (thankfully not that difficult when sorted by date).



            Once you have the .pkg file (Receipt or the full install file) you can then use a utility to either create the uninstaller or find the files so you can remove them manually:



            Uninstaller



            Absolute Software InstallEase is a free program that can create uninstallers from existing .pkg files. Make the uninstaller .pkg file (note: You'll need Apple's Developer Tools installed to actually make the .pkg file)



            Manually



            Using a program such as Pacifist or a QuickLook plugin like Suspicious Package you can view what files are installed and at what location. Using that list you can then manually navigate to those folders and remove the files. I've used this method personally countless times before I discovered InstallEase, but this is still often faster if the install isn't spread out among many locations.






            share|improve this answer


























            • Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

              – dlamblin
              Sep 6 '09 at 20:34






            • 4





              Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

              – NobleUplift
              May 1 '14 at 15:21














            18












            18








            18







            Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually.



            The best method to determine what files have been installed is to get a hold of the original .pkg if possible. If this is not possible you can also use the receipts instead found at /Library/Receipts. Your biggest issue is when you are dealing with a .mpkg which contains multiple .pkg files as you will then have to find all the seperate .pkg files in that folder (thankfully not that difficult when sorted by date).



            Once you have the .pkg file (Receipt or the full install file) you can then use a utility to either create the uninstaller or find the files so you can remove them manually:



            Uninstaller



            Absolute Software InstallEase is a free program that can create uninstallers from existing .pkg files. Make the uninstaller .pkg file (note: You'll need Apple's Developer Tools installed to actually make the .pkg file)



            Manually



            Using a program such as Pacifist or a QuickLook plugin like Suspicious Package you can view what files are installed and at what location. Using that list you can then manually navigate to those folders and remove the files. I've used this method personally countless times before I discovered InstallEase, but this is still often faster if the install isn't spread out among many locations.






            share|improve this answer















            Built into the system there is no option to uninstall the files using an uninstaller so you can either make an uninstaller yourself or remove the files manually.



            The best method to determine what files have been installed is to get a hold of the original .pkg if possible. If this is not possible you can also use the receipts instead found at /Library/Receipts. Your biggest issue is when you are dealing with a .mpkg which contains multiple .pkg files as you will then have to find all the seperate .pkg files in that folder (thankfully not that difficult when sorted by date).



            Once you have the .pkg file (Receipt or the full install file) you can then use a utility to either create the uninstaller or find the files so you can remove them manually:



            Uninstaller



            Absolute Software InstallEase is a free program that can create uninstallers from existing .pkg files. Make the uninstaller .pkg file (note: You'll need Apple's Developer Tools installed to actually make the .pkg file)



            Manually



            Using a program such as Pacifist or a QuickLook plugin like Suspicious Package you can view what files are installed and at what location. Using that list you can then manually navigate to those folders and remove the files. I've used this method personally countless times before I discovered InstallEase, but this is still often faster if the install isn't spread out among many locations.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 20 '13 at 5:22









            cavalcade

            1577




            1577










            answered Sep 6 '09 at 17:51









            ChealionChealion

            22.3k76070




            22.3k76070













            • Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

              – dlamblin
              Sep 6 '09 at 20:34






            • 4





              Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

              – NobleUplift
              May 1 '14 at 15:21



















            • Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

              – dlamblin
              Sep 6 '09 at 20:34






            • 4





              Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

              – NobleUplift
              May 1 '14 at 15:21

















            Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

            – dlamblin
            Sep 6 '09 at 20:34





            Thanks, while the regular 5.1 mysql packages left a receipt, the beta 5.4 mysql packages did not. That's slightly odd.

            – dlamblin
            Sep 6 '09 at 20:34




            4




            4





            Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

            – NobleUplift
            May 1 '14 at 15:21





            Wow, if I knew this I never would have installed the .pkg to begin with. y u no Programs and Features OS X?

            – NobleUplift
            May 1 '14 at 15:21











            9














            you can also uninstall .pkg packages with UninstallPKG ( http://www.corecode.at/uninstallpkg/ )



            [full disclosure: yes i am the author]






            share|improve this answer
























            • As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

              – fgp
              Oct 17 '14 at 10:40











            • Nice stuff. Thanks for your work.

              – Viacheslav Kovalev
              Jan 17 '17 at 8:54











            • It's worth noting it's not free but does include a free trial

              – Ron E
              Mar 23 '18 at 2:11
















            9














            you can also uninstall .pkg packages with UninstallPKG ( http://www.corecode.at/uninstallpkg/ )



            [full disclosure: yes i am the author]






            share|improve this answer
























            • As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

              – fgp
              Oct 17 '14 at 10:40











            • Nice stuff. Thanks for your work.

              – Viacheslav Kovalev
              Jan 17 '17 at 8:54











            • It's worth noting it's not free but does include a free trial

              – Ron E
              Mar 23 '18 at 2:11














            9












            9








            9







            you can also uninstall .pkg packages with UninstallPKG ( http://www.corecode.at/uninstallpkg/ )



            [full disclosure: yes i am the author]






            share|improve this answer













            you can also uninstall .pkg packages with UninstallPKG ( http://www.corecode.at/uninstallpkg/ )



            [full disclosure: yes i am the author]







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 29 '13 at 12:58









            user1259710user1259710

            20834




            20834













            • As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

              – fgp
              Oct 17 '14 at 10:40











            • Nice stuff. Thanks for your work.

              – Viacheslav Kovalev
              Jan 17 '17 at 8:54











            • It's worth noting it's not free but does include a free trial

              – Ron E
              Mar 23 '18 at 2:11



















            • As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

              – fgp
              Oct 17 '14 at 10:40











            • Nice stuff. Thanks for your work.

              – Viacheslav Kovalev
              Jan 17 '17 at 8:54











            • It's worth noting it's not free but does include a free trial

              – Ron E
              Mar 23 '18 at 2:11

















            As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

            – fgp
            Oct 17 '14 at 10:40





            As the author, you might want to fix the download link to your software - http://www.corecode.at/downloads/uninstallpkg_1.0.6.zip currently 404s...

            – fgp
            Oct 17 '14 at 10:40













            Nice stuff. Thanks for your work.

            – Viacheslav Kovalev
            Jan 17 '17 at 8:54





            Nice stuff. Thanks for your work.

            – Viacheslav Kovalev
            Jan 17 '17 at 8:54













            It's worth noting it's not free but does include a free trial

            – Ron E
            Mar 23 '18 at 2:11





            It's worth noting it's not free but does include a free trial

            – Ron E
            Mar 23 '18 at 2:11











            4














            I made the same wheel last month, It's called Package Uninstaller, open sourced and hosted on github: https://github.com/hewigovens/PackageUninstaller,



            you can download and try it from [here].(http://sourceforge.net/projects/packageuninstaller/files/latest/download)






            share|improve this answer
























            • Worth noting it will only run on 10.7 or higher.

              – Xavi López
              Mar 30 '14 at 21:04











            • Weird that the project owner removed the compiled binary

              – Antony
              Feb 9 '16 at 16:03






            • 1





              The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

              – RichVel
              Jan 13 '17 at 9:09
















            4














            I made the same wheel last month, It's called Package Uninstaller, open sourced and hosted on github: https://github.com/hewigovens/PackageUninstaller,



            you can download and try it from [here].(http://sourceforge.net/projects/packageuninstaller/files/latest/download)






            share|improve this answer
























            • Worth noting it will only run on 10.7 or higher.

              – Xavi López
              Mar 30 '14 at 21:04











            • Weird that the project owner removed the compiled binary

              – Antony
              Feb 9 '16 at 16:03






            • 1





              The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

              – RichVel
              Jan 13 '17 at 9:09














            4












            4








            4







            I made the same wheel last month, It's called Package Uninstaller, open sourced and hosted on github: https://github.com/hewigovens/PackageUninstaller,



            you can download and try it from [here].(http://sourceforge.net/projects/packageuninstaller/files/latest/download)






            share|improve this answer













            I made the same wheel last month, It's called Package Uninstaller, open sourced and hosted on github: https://github.com/hewigovens/PackageUninstaller,



            you can download and try it from [here].(http://sourceforge.net/projects/packageuninstaller/files/latest/download)







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 15 '13 at 9:49









            hewigOvenshewigOvens

            20424




            20424













            • Worth noting it will only run on 10.7 or higher.

              – Xavi López
              Mar 30 '14 at 21:04











            • Weird that the project owner removed the compiled binary

              – Antony
              Feb 9 '16 at 16:03






            • 1





              The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

              – RichVel
              Jan 13 '17 at 9:09



















            • Worth noting it will only run on 10.7 or higher.

              – Xavi López
              Mar 30 '14 at 21:04











            • Weird that the project owner removed the compiled binary

              – Antony
              Feb 9 '16 at 16:03






            • 1





              The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

              – RichVel
              Jan 13 '17 at 9:09

















            Worth noting it will only run on 10.7 or higher.

            – Xavi López
            Mar 30 '14 at 21:04





            Worth noting it will only run on 10.7 or higher.

            – Xavi López
            Mar 30 '14 at 21:04













            Weird that the project owner removed the compiled binary

            – Antony
            Feb 9 '16 at 16:03





            Weird that the project owner removed the compiled binary

            – Antony
            Feb 9 '16 at 16:03




            1




            1





            The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

            – RichVel
            Jan 13 '17 at 9:09





            The download link on sourceforge is broken and there are some significant issues with the package: github.com/hewigovens/PackageUninstaller/issues

            – RichVel
            Jan 13 '17 at 9:09











            1














            You can try the suggestions from this site: http://www.entropy.ch/software/macosx/mysql/remove-old-mysql.html. Also, there's an article regarding this on the Adobe support site; here's the link: http://support.adobe.com/devsup/devsup.nsf/docs/52355.htm.



            Also, the apps that usually have a pkg file in the dmg usually also have another pkg that is used for uninstalling. I'm not sure if this is true here, but I wanted to let you know to keep the original dmg file.






            share|improve this answer




























              1














              You can try the suggestions from this site: http://www.entropy.ch/software/macosx/mysql/remove-old-mysql.html. Also, there's an article regarding this on the Adobe support site; here's the link: http://support.adobe.com/devsup/devsup.nsf/docs/52355.htm.



              Also, the apps that usually have a pkg file in the dmg usually also have another pkg that is used for uninstalling. I'm not sure if this is true here, but I wanted to let you know to keep the original dmg file.






              share|improve this answer


























                1












                1








                1







                You can try the suggestions from this site: http://www.entropy.ch/software/macosx/mysql/remove-old-mysql.html. Also, there's an article regarding this on the Adobe support site; here's the link: http://support.adobe.com/devsup/devsup.nsf/docs/52355.htm.



                Also, the apps that usually have a pkg file in the dmg usually also have another pkg that is used for uninstalling. I'm not sure if this is true here, but I wanted to let you know to keep the original dmg file.






                share|improve this answer













                You can try the suggestions from this site: http://www.entropy.ch/software/macosx/mysql/remove-old-mysql.html. Also, there's an article regarding this on the Adobe support site; here's the link: http://support.adobe.com/devsup/devsup.nsf/docs/52355.htm.



                Also, the apps that usually have a pkg file in the dmg usually also have another pkg that is used for uninstalling. I'm not sure if this is true here, but I wanted to let you know to keep the original dmg file.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 6 '09 at 11:27









                alexalex

                15.3k64673




                15.3k64673























                    1














                    I made a shell srcipt



                    you can try it



                    https://github.com/iamrToday/pkg-remove



                    It shows a .gif demo, you can see the source code, just wrap the brablc's command line. You can run it to search infomation , you also can remove apk. It is interactive.






                    share|improve this answer


























                    • what does it do?

                      – Pierre.Vriens
                      Jun 12 '18 at 15:09











                    • I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

                      – rToday Lin
                      Jun 13 '18 at 15:27


















                    1














                    I made a shell srcipt



                    you can try it



                    https://github.com/iamrToday/pkg-remove



                    It shows a .gif demo, you can see the source code, just wrap the brablc's command line. You can run it to search infomation , you also can remove apk. It is interactive.






                    share|improve this answer


























                    • what does it do?

                      – Pierre.Vriens
                      Jun 12 '18 at 15:09











                    • I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

                      – rToday Lin
                      Jun 13 '18 at 15:27
















                    1












                    1








                    1







                    I made a shell srcipt



                    you can try it



                    https://github.com/iamrToday/pkg-remove



                    It shows a .gif demo, you can see the source code, just wrap the brablc's command line. You can run it to search infomation , you also can remove apk. It is interactive.






                    share|improve this answer















                    I made a shell srcipt



                    you can try it



                    https://github.com/iamrToday/pkg-remove



                    It shows a .gif demo, you can see the source code, just wrap the brablc's command line. You can run it to search infomation , you also can remove apk. It is interactive.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jun 13 '18 at 16:56









                    Pierre.Vriens

                    1,24561218




                    1,24561218










                    answered Jun 12 '18 at 13:56









                    rToday LinrToday Lin

                    111




                    111













                    • what does it do?

                      – Pierre.Vriens
                      Jun 12 '18 at 15:09











                    • I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

                      – rToday Lin
                      Jun 13 '18 at 15:27





















                    • what does it do?

                      – Pierre.Vriens
                      Jun 12 '18 at 15:09











                    • I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

                      – rToday Lin
                      Jun 13 '18 at 15:27



















                    what does it do?

                    – Pierre.Vriens
                    Jun 12 '18 at 15:09





                    what does it do?

                    – Pierre.Vriens
                    Jun 12 '18 at 15:09













                    I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

                    – rToday Lin
                    Jun 13 '18 at 15:27







                    I show a .gif demo, you can see the source code, just wrap the brablc's command line. you can run it to search infomation , you also can remove apk. it is interactive . :)

                    – rToday Lin
                    Jun 13 '18 at 15:27




















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f36567%2fhow-do-i-uninstall-any-apple-pkg-package-file%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Terni

                    A new problem with tex4ht and tikz

                    Sun Ra