How To Install Dep In Debian, Ubuntu, Alpine, Arch, Kali, Fedora And MacOS?

How To Install Dep In Debian, Ubuntu, Alpine, Arch, Kali, Fedora And MacOS?

dep

Tool for dependency management in Go projects.

Install dep

  • Debian apt-get install dep Click to copy
  • Ubuntu apt-get install dep Click to copy
  • Alpine OS apk add dep Click to copy
  • Arch Linux pacman -S dep Click to copy
  • Kali Linux apt-get install dep Click to copy
  • Fedora dnf install dep Click to copy
  • macOS brew install dep Click to copy

Tool for dependency management in Go projects.

How to use dep?

Below are few example commands for dep that you can use in the terminal.

Initialize the current directory as the root of a Go project:
dep initClick to copy
Install any missing dependencies (Scans Gopkg.toml and your .go files):
dep ensureClick to copy
Report the status of the project's dependencies:
dep statusClick to copy
Add a dependency to the project:
dep ensure -add package_urlClick to copy
Update the locked versions of all dependencies:
dep ensure -updateClick to copy
Installing dep command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora and macOS operating systems. Once you run the command it will install the latest version of dep 2026 package in your OS.