Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install cask for homebrew on mac

I have set up git and homebrew, ran brew reset-update, brew update and brew doctor none of these give me errors but when I try to install glew using: brew install glew it gives me many errors:

fatal: the remote end hung up unexpectedly30.11 MiB | 4.92 MiB/s
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-cask     /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask` exited with 128.

I figured it was because cask wasn't installed(even though from what I've read it's supposed to install with homebrew) so tried to install cask separately too but it also gives me the same error as the bottom one, I've also tried reinstalling git and homebrew, updating everything as well as restarting my mac. Any help would be appreciated.

like image 670
Win Barua Avatar asked Feb 01 '21 14:02

Win Barua


People also ask

What is Homebrew cask Mac?

Homebrew-Cask extends Homebrew and allows you to install large binary files via a command-line tool. You can for example install applications like Google Chrome, Dropbox, VLC and Spectacle. No more downloading . dmg files and dragging them to your Applications folder!

How do I find brew cask?

You can use the --casks flag in brew search to "display all locally available casks". $ brew search -h Usage: brew search [options] [text|/text/] Perform a substring search of cask tokens and formula names for text. If text is surrounded with slashes, then it is interpreted as a regular expression.

What is cask and formula in brew?

Homebrew calls its package definition files “formulae” (British plural for “formula”). Homebrew-Cask calls them “casks”. A cask, just like a formula, is a file written in a Ruby-based DSL that describes how to install something. The Cellar is where Homebrew installs things.

What is a brew cask?

brew cask is an extension to standard brew based software management, it's a type of formula that documents the process of installing a graphical application (and not entirely coincidentally closed-source software).


2 Answers

You can install cask using this command:

$ brew install cask

For details, please see https://cask.readthedocs.io/en/latest/guide/installation.html

like image 162
user8128167 Avatar answered Sep 28 '22 08:09

user8128167


Homebrew Cask is implemented as part of Homebrew. All Homebrew Cask commands begin with brew

Please refer the link for more details https://github.com/Homebrew/homebrew-cask/blob/master/USAGE.md

like image 35
Govindarajan V Avatar answered Sep 28 '22 09:09

Govindarajan V