Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Easy removal of installed packages Desktop
I only have a 6GB HD and I've filled it up with things I don't really need...Gimp, extra languages, additional printers, etc. To uninstall these packages cleanly and quickly, just download this powerful little set of scripts called OSXGNU Package Utilities, by Chris Roberts.

Install the program, then open a Terminal window and type
  sudo pkgInstall --delete 
Include a space after "--delete" (i.e "--delete "). DO NOT Press return yet! Next open the /Library/Receipts directory in the finder. Select a package to delete and drag it to the terminal window you typed the command in. You should have a line in the terminal something like
  pkgInstall --delete /Library/Receipts/packagename.pkg
Press 'return' and the delete process begins; if the package has a delete message you may have to respond to a yes or no question. Repeat for any other package(s) you want to delete.

[Editor's note: I have not tested this myself yet, but it looks like a very useful utility.]
    •    
  • Currently 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[7,075 views]  

Easy removal of installed packages | 5 comments | Create New Account
Click here to return to the 'Easy removal of installed packages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Warning against use of this
Authored by: sjonke on Feb 08, '02 12:41:46AM

I just want to warn that I used this tool in the past and it ended up removing stuff it shouldn't have or in any case made my OS X really screwy. I don't know exactly what the problem was, but it was definitely related to using this pkg uninstaller. Ultimately I had to backup my personal files, erase the partition and install a fresh copy of OS X. It was a royal pain in the butt, though it ended up giving me a nice speed boost (presumably due to disk fragmentation being cleared up). Anyway, since then I decided not to waste any more time and effort installing Unix things that I know I'll ultimate decide are as lousy as I remembered such things being. I'll wait for real OS X applications thank you very much.



[ Reply to This | # ]
Warning against use of this
Authored by: somynona on Feb 10, '02 05:57:47AM

Agree on both counts sjonke. I posted the hint and I ended up with a small problem (specifically a "tcsh_initdir: Undefined variable" error in my terminal). You can view it and the solution here:

http://discussions.info.apple.com/webx?13@92.agB1aFlJmlw^3@.f013989

I also agree with you about waiting for native applications. After going through what is admittedly an easy process of installing X windows and Gimp I still think it's not worth it. In fact I would go one step further and suggest people avoid anything that isn't Cocoa if you can, but that's probably a little pedantic. I saw someone on versiontracker call it "Cocoa snobbery!" ;)



[ Reply to This | # ]
danger
Authored by: bhines on Feb 08, '02 02:05:08AM

yes, the danger would arise from the fact that some pkgs upgrade essential system components. For example iTunes 2.0.3 upgraded the disc recording framework. If you "removed" blindly everything from that package, you would break anything else that depends on that framework.



[ Reply to This | # ]
Apple vs. third-party stuff
Authored by: robg on Feb 08, '02 08:34:14AM

Although I haven't tested it, from the web page it looks like it was designed primarily for third-party UNIX applications. If it's really removing stuff that wasn't part of the third-party application, then that's definitely a bug!

If, on the other hand, you used it to remove an Apple-installed update, then bhines has it right - very bad things could, indeed, happen!

-rob.



[ Reply to This | # ]
Apple vs. third-party stuff
Authored by: sjonke on Feb 08, '02 10:33:44AM

I used it only to remove 3rd party stuff, or least that was the intent.



[ Reply to This | # ]