Grab the latest binary from the releases page.
On macOS you can install or upgrade to the latest released version with Homebrew:
$ brew install dep
$ brew upgrade dep
If you're interested in hacking on dep, you can install via go get:
go get -u github.com/golang/dep/cmd/dep
To start managing dependencies using dep, run the following from your project's root directory:
$ dep init