Home unprepared files

I am trying to use homebrew to install python and finally got this to work. In the process of trying to do this work, I ran:

brew list --unbrewed 

and got a huge list of files (over 59,000). These files are mainly associated with python, node, ruby, mongo and mysql. I also run brew update and brew doctor, and none of them have any effect on an unrelated list.

It doesn't seem like such a great idea to keep my installation in this state. So I think I have a few questions about this:

1) Is this something I have to worry about or fix?

2) Where are unrelated files stored? (I was looking for documentation on this, but could not find it). Many of these files do not exist on the specified path, where are they?

3) If I wanted to clear this, how would I do it? And will I end up uninstalling my installations of these packages / formulas?

+4
source share
2 answers

This is nothing to worry about. Homebrew is designed to play well with other things that are installed on /usr/local/ , which is the standard place for software designed for the user. There are many other things. The brew list --unbrewed simply lists all the files under /usr/local that were not placed there by Homebrew. This is not a diagnosis of an actual problem, it is more for identifying things that you might want to put in the Homebrew formula, or to help developers help checking stray files during installation work. Any normal system is likely to have a non-empty brew list --unbrewed .

Make a brew doctor instead. This checks files in specific places under /usr/local , which can be problematic. If a brew doctor complains about something, you should probably go for it. Otherwise, do not worry about them and do not try to clean them - you will probably place these files for some reason.

Here is an example of what my test 10.8.3 reports. Many files --unbrewed , but doctor happy. Homebrew is functioning just fine.

 $ brew list --unbrewed | wc 1721 1727 82663 $ brew doctor Your system is ready to brew. 

So:

1) No, do not worry about this or correct it, unless the brew doctor tells you. Removing these files may lead to a breakdown of what you installed.

2) These paths refer to brew --prefix , which is probably /usr/local .

3) Hypothetically, in order to β€œclean”, for each file, you simply determine that it was installed, and delete it by reinstalling it using the Homebrew formula, if you really need it, or came to the conclusion that it was a mistake or no longer needed and delete it. There is no standard or easy way to do this. And this is exactly the problem that Homebrew and other package managers are facing.

Some of them may be useful if you want to use Homebrew more widely to manage your installations. Every time you are going to install some software other than Homebrew, which is located in /usr/local/ , instead of following normal installation instructions, use brew create to create a formula for it. Then homebrew will track the files that it installs.

+7
source

I came across this question and just wanted to share a script that I wrote that can easily remove Homebrew, find the files installed by Homebrew, and much more; maybe this can help someone!

https://gist.github.com/SteveBenner/11254428

0
source

All Articles