Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Confused about brew bundle #32952

Closed
ChristopherA opened this issue Oct 5, 2014 · 10 comments
Closed

Confused about brew bundle #32952

ChristopherA opened this issue Oct 5, 2014 · 10 comments

Comments

@ChristopherA
Copy link

A number of websites talk about having a Brewfile that is executed by brew bundle. However, when I try this I get "Error: Unknown command: bundle". In all other ways, brew is working. Looking at man brew and searching the wiki here it doesn't seem to be a current feature of brew.

Any ideas? Is this feature not in the current build? Is it a deprecated feature?

-- Christopher Allen

$ which brew
/usr/local/bin/brew

$ brew -v
Homebrew 0.9.5

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl http://github.com

$ brew update
Already up-to-date.

$ cat ~/.dotfiles/install/brewfile-basic
# Important early installs

install hub # https://hub.github.com
install git-extras # https://github.com/visionmedia/git-extras
install bash-completion # http://bash-completion.alioth.debian.org

# Cleaning up Brew caches

linkapps
cleanup
prune

$ brew bundle ~/.dotfiles/install/brewfile-basic
Error: Unknown command: bundle

$ brew bundle
Error: Unknown command: bundle
@MikeMcQuaid
Copy link
Member

It was deprecated and then removed recently, I'm afraid.

@ChristopherA
Copy link
Author

Is there an issue that explains why it was deprecated?

@MikeMcQuaid
Copy link
Member

It was one of several contributed commands that was removed because it was unused by any of the maintainers and thus unmaintained. With this one in particular it was problematic because it had a fundamentally broken API which just piped commands to Homebrew rather than using a more sensible DSL. https://github.com/andrew/brewdler would be a better alternative, I think.

@andriijas
Copy link

Just make a shell script instead that installs your stuff.

@MikeMcQuaid
Copy link
Member

@andriijas 👍

@wangwenchao
Copy link

👍 thanks

@jonasrosland
Copy link

I've created Brewfiles and Caskfiles to use with the bundle command, but since that's now removed here's how I solved it. I'm still separating everything I want to install into files, and then using a shell script to install everything from them.

Brewfile:

## Productive stuff
zsh
zsh-completions
zsh-syntax-highlighting
git
git-flow

Caskfile:

## Standard app replacements
# Web
google-chrome
# Terminal
iterm2

Then in my bash script:

# Install brews
brew install $(cat Brewfile|grep -v "#")

# Install casks
brew cask install $(cat Caskfile|grep -v "#")

Also did a crappy workaround for Taps, the entire thing can be found here: https://github.com/virtualswede/osx-bootstrap

@yoshuawuyts
Copy link

@virtualswede sweet, thanks! :D

@MikeMcQuaid
Copy link
Member

For anyone following this thread: this is the new official replacement built by @andrew: https://github.com/Homebrew/homebrew-brewdler

rupurt pushed a commit to rupurt/vim-bootstrap that referenced this issue Mar 11, 2015
rupurt pushed a commit to rupurt/vim-bootstrap that referenced this issue Mar 11, 2015
lencioni referenced this issue in wincent/wincent Mar 16, 2015
This is just the list of currently installed packages, so could probably
use some curation.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
@elliotthilaire
Copy link

@jonasrosland : Your comment was helpful. I've modified the command to allow for inline comments.

brew install $(cat Brewfile | sed 's/#.*//')

@Homebrew Homebrew locked and limited conversation to collaborators May 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants