# Cask

> Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Atom and Google Chrome.

## Getting Started

First ensure you have Homebrew version `0.9.5` or higher:

```
$ brew --version
0.9.5
```

## Frequently Used Commands

Homebrew-Cask is implemented as a subcommand of Homebrew. All Homebrew-Cask commands begin with brew cask. Homebrew-Cask has its own set of command verbs many of which are similar to Homebrew’s. The most frequently-used commands are:

* `install` — installs the given Cask
* `uninstall` — uninstalls the given Cask
* `list` — lists installed Casks

## Searching for Casks

To search for Casks, use `brew search`. Let’s see if there’s a Cask for Google Chrome:

```
$ brew search google-chrome
==> Casks
google-chrome
homebrew/cask-versions/google-chrome-beta
homebrew/cask-versions/google-chrome-canary
homebrew/cask-versions/google-chrome-dev
```

## Installing Casks

The command `brew cask install` accepts one or multiple Cask tokens.

```
brew cask install google-chrome
```

## Uninstalling Casks

```
brew cask uninstall google-chrome
```

This will both uninstall the Cask and remove applications which were moved to `/Applications`.

## Other Commands

* `info` — displays information about the given Cask
* `list` — with no args, lists installed Casks; given installed Casks, lists staged files (with --full-name, include tap name)
* `fetch` — downloads remote application files for the given Cask to the local cache (with --force, re-download even if already cached)
* `doctor` — checks for configuration issues
* `cleanup` — cleans up cached downloads (with `--outdated`, only cleans old downloads)
* `home` — opens the homepage of the given Cask; or with no arguments, the Homebrew-Cask project page
* `zap` — try to remove all files associated with a Cask (may include resources shared with other applications)
* `outdated` - lists all outdated Casks
* `upgrade` - updates all outdated Casks


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://styryshkin.gitbook.io/mac-setup/console/homebrew/cask.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
