How to Fix “Error: Unknown command: cask” in brew

I got the error message “Error: Unknown command: cask” while trying to install multipass using brew cask command. This is as shared in code section:

$ brew cask install multipass
Error: Unknown command: cask

The reason you’ll get this error is that cask is no longer a brew command. Whenever you want to install a Cask, you will run the command:

brew install <package>
# OR
brew install --cask <package>

Instead of brew cask install. So let’s rerun the installation and see the results:

$ brew  install --cask multipass
==> Downloading https://github.com/CanonicalLtd/multipass/releases/download/v1.6
==> Downloading from https://github-releases.githubusercontent.com/114128199/4dd
######################################################################## 100.0%
==> Installing Cask multipass
==> Running installer for multipass; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
Password:
installer: Package name is multipass
installer: Installing at base path /
installer: The install was successful.
🍺  multipass was successfully installed!

Reading brew help pages is also helpful when you encounter any error while using the command. Here are common ways of getting help:

brew help
man brew
brew help <command>

See brew common usage examples:

$ brew help
Example usage:
  brew search TEXT|/REGEX/
  brew info [FORMULA|CASK...]
  brew install FORMULA|CASK...
  brew update
  brew upgrade [FORMULA|CASK...]
  brew uninstall FORMULA|CASK...
  brew list [FORMULA|CASK...]

Troubleshooting:
  brew config
  brew doctor
  brew install --verbose --debug FORMULA|CASK

Contributing:
  brew create URL [--no-fetch]
  brew edit [FORMULA|CASK...]

Further help:
  brew commands
  brew help [COMMAND]
  man brew
  https://docs.brew.sh

I hope this guide was of importance to you in bypassing the error stated while trying to install a package using brew package manager on macOS. The error “error: unknown command: cask” should be no issue from now onwards.

More guides on macOS are shared in the links below:

Courses to Learn Linux System Administration:

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Unlock the Right Solutions with Confidence

At CloudSpinx, we don’t just offer services - we deliver clarity, direction, and results. Whether you're navigating cloud adoption, scaling infrastructure, or solving DevOps challenges, our seasoned experts help you make smart, strategic decisions with total confidence. Let us turn complexity into opportunity and bring your vision to life.

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

NFS, short for Network File Share, is a distributed file system protocol that enables mounting of remote directories on one’s […]

I recently encountered an error message while trying to download Google Chrome on Windows Server using Internet Explorer browser. In […]

What is Enpass and how can I install Enpass on Ubuntu/ Debian Linux System?. When dealing with a lot of […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.