I uninstalled Homebrew, manually removed the /usr/local contents.

The following possible Homebrew files were not deleted:


You may consider to remove them by yourself.

You may want to restore /usr/local's original permissions

  sudo chmod 0755 /usr/local
  sudo chgrp wheel /usr/local

I want to know what the suggested commands do.

  • At least /usr/local/texlive/ is the result of installing TeX. If you still use this, you probably shouldn't delete the directory...
    – nohillside
    Dec 16, 2015 at 20:33
  • @patrix , I was actually uninstalling Latex(MacTex), gnu plot and reinstalling. I think TexMaker is easier so will be going for it. While linking few libraries I faced problems(Error notices), that's when I decided to clean and reinstall everything from the scratch. Thank you and more tips and suggestions are welcome
    – DSha
    Dec 16, 2015 at 20:38

1 Answer 1


When you perform the chmod 755 filename command you allow everyone to read and execute the file, and the file owner is allowed to write to the file as well. You may need this for Perl and other scripts that should to be run via a webserver. If you apply 755 to a directory, it means that everyone can go to it and get its file listing.

When you run chgrp group-name filename command you change the group of each filename to group-name.

Running both commands using sudo prefix let you be sure that the changes takes effect, because your run it as root that is the user with most permissions on every single unix like machine.

You can type man chmod, man chgrp or man sudo for more info and options.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .