-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit brewfile to items you install and not dependencies #41
Comments
I have sometimes thought to make a list with such dependencies but that makes a list complex. I implemented If you want to do it always, you can set
in your .bashrc/.zshrc, then brew-file will be done with Note: There is a difficulty on If a package, which has some packages depending on, is uninstalled, But there could be some packages on which some packages depend, I don't have better idea for now, therefore we should be careful to use |
Thanks for this! I'll try messing around with it. What I wished to work towards was being able to only have a list of the important programs and not dependencies of items that you never installed yourself. Sadly leaves isn't the best solution for the reasons you mentioned as well as the concept itself will hide programs you installed if you installed a program that depended on it. Example is if you install renameutils, it will hide coreutils.. and I have a feeling that it'll also hide all the flags you may have had on it as well... Keeping track of items you actually install vs installed because of dependencies seems like something homebrew should have in the program's install receipt but I don't see sadly. Anyway I think this can be closed, thanks! |
There is a possibility to have an option such The concept of Brew-file is that users don't need to prepare for Brewfile by themselves, |
Another option for that may be to have the possibility of having multiple brewfiles, where it would only write to 1 but have the option of reading multiple of them. I can see that being useful outside of this one context. But I agree managing them yourself isn't really the spirit of the plugin so I don't see many people using it |
I added ',' separated list. If the package is in this list, it will be in Brewfile even if Not sure how the option is useful or not, |
Awesome! And thanks for looking at this stuff so quickly |
I'm interested in converting my package list to be more similar to "brew leaves" (Run the external brew command using brew leaves, see https://github.com/Homebrew/brew/blob/cb711a2d39a9c76d40f43b4fe13564eba3424ea8/Library/Homebrew/cmd/leaves.rb). Since the dependencies will be installed by homebrew, I don't have the need to store these in my package list.
First thing I'm curious about is were there ever any plans for this or any reasons why it isn't done this way?
The text was updated successfully, but these errors were encountered: