How do I delete Unix scripts in /usr/local/bin/

Well, I download a program call mpgtx (mpeg editor). After install, it put all its files to /usr/local/bin/, and there are unix scripts, mpgdemux, mpgcat..etc. So I just wander how I can delete them. Can just do rm mpg* from Terminal?

Pls, help.

Mini G4 and MacBook Pro, Mac OS X (10.4.10)

Posted on Jul 14, 2009 9:53 PM

Reply
6 replies

Jul 14, 2009 10:54 PM in response to PowerBon

Yes.

You may need to elevate your privileges to root, so prepend the command with "sudo" and enter your account password when prompted.

sudo rm mpg*

A better way to remove all traces of a program that uses Apple's Installer is to see if the Installer left a receipt here:

/Library/Receipts/<program name>.pkg

If so, then you can read its Bill Of Materials to see all the files that got installed. In Terminal

lsbom <program name>.pkg/Contents/Archive.bom

Jul 14, 2009 11:02 PM in response to PowerBon

Can just do rm mpg* from Terminal?


Almost. You'd need to cd into /usr/local/bin first, otherwise that command would remove any file that matches mpg* in the current directory.

The only other caveat may be permissions - you might need to elevate your permissions before you're allowed to remove those files. A simple sudo should suffice:

cd /usr/local/bin
sudo rm mpg*

Jul 15, 2009 8:51 AM in response to Camelot

Thanks for all your help.
But one more thing, since these files are put in such a strange place (/usr/local/bin), so would these files be linked or shared some data w/ other application or my system? What i mean is I don't want to rm them all and then after some how my system get crazy, and all I getta to do is REINSTALL YOUR OS X.! You know? That would not be nice at all

Thx again.

Message was edited by: PowerBon

Jul 15, 2009 10:02 AM in response to PowerBon

I don't even HAVE a /usr/local/bin folder on either of my Leopard installs. One install does have a /usr/local folder, but everything in it was installed by the latest version of Privoxy, the other install doesn't have a /usr/local folder at all. So you won't mess up anything from the system. Whether you'll mess up some third party something or other you have installed only you can know. I suspect they probably don't take up much room, you could check that. If the amount of space consumed is trivial, you could just leave them.
Francine

User uploaded file
Francine
Schwieder

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I delete Unix scripts in /usr/local/bin/

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.