github.com/golang/dep@v0.5.4/docs/installation.md (about)

     1  ---
     2  title: Installation
     3  ---
     4  
     5  It is strongly recommended that you use a released version of dep. While tip is never purposefully broken, its stability is not guaranteed.
     6  
     7  ## Binary Installation
     8  
     9  Pre-compiled binaries are available on the [releases](https://github.com/golang/dep/releases) page. You can use the `install.sh` script to automatically install one for your local platform:
    10  
    11  ```sh
    12  $ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
    13  ```
    14  
    15  ## MacOS
    16  
    17  Install or upgrade to the latest released version with Homebrew:
    18  
    19  ```sh
    20  $ brew install dep
    21  $ brew upgrade dep
    22  ```
    23  
    24  ## Windows
    25  
    26  You can install from source (see below) or download a tarball from
    27  [go.equinox.io](https://go.equinox.io/github.com/golang/dep/cmd/dep).
    28  
    29  ## Arch Linux
    30  
    31  Install the `dep` package:
    32  
    33  ```sh
    34  pacman -S dep
    35  ```
    36  
    37  ## Fedora
    38  
    39  Install the `dep` package:
    40  
    41  ```sh
    42  dnf install -y dep
    43  ```
    44  
    45  ## Install From Source
    46  
    47  The snippet below installs the latest release of dep from source and sets the
    48  version in the binary so that `dep version` works as expected.
    49  
    50  Note that this approach is not recommended for general use. We don't try to
    51  break tip, but we also don't guarantee its stability. At the same time, we love
    52  our users who are willing to be experimental and provide us with fast feedback!
    53  
    54  ```sh
    55  go get -d -u github.com/golang/dep
    56  cd $(go env GOPATH)/src/github.com/golang/dep
    57  DEP_LATEST=$(git describe --abbrev=0 --tags)
    58  git checkout $DEP_LATEST
    59  go install -ldflags="-X main.version=$DEP_LATEST" ./cmd/dep
    60  git checkout master
    61  ```
    62  
    63  ## Development
    64  
    65  If you want to hack on dep, you can install via `go get`:
    66  
    67  ```sh
    68  go get -u github.com/golang/dep/cmd/dep
    69  ```
    70  
    71  Note that dep requires a functioning Go workspace and GOPATH. If you're unfamiliar with Go workspaces and GOPATH, have a look at [the language documentation](https://golang.org/doc/code.html#Organization) and get your local workspace set up. Dep's model could lead to being able to work without GOPATH, but we're not there yet.
    72  
    73  ## Uninstalling
    74  
    75  Looking for a way to uninstall `dep`? There's a separate [doc page](uninstalling.md) for that!