Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit aefa7cc

Browse files
jaypipescarolynvs
authored andcommitted
add documentation explaining how to uninstall (#1954)
* add documentation explaining how to uninstall There's good docs on how to install dep, but we're missing docs on how to uninstall dep. This adds them. I thought about adding some text to the top-level README.md file but figured uninstalling dep wasn't a vital topic for top-level docs and that a separate doc in the docs/ tree was more than enough. Issue #1953 * Link in the uninstalling doc from the install doc page * Aha, figured out how to add the uninstalling.md link in the docs site
1 parent a9121da commit aefa7cc

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

docs/installation.md

+4
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ go get -u github.com/golang/dep/cmd/dep
5656
```
5757

5858
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.
59+
60+
## Uninstalling
61+
62+
Looking for a way to uninstall `dep`? There's a separate [doc page](uninstalling.md) for that!

docs/uninstalling.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Uninstalling Dep
3+
---
4+
5+
## Uninstalling
6+
7+
To uninstall `dep` itself, follow these instructions, depending on how you installed `dep` originally.
8+
9+
### If you installed `dep` by executing the `install.sh` script via curl
10+
11+
If you installed `dep` using the `install.sh` script, it is safe to simply delete the installed binary file.
12+
13+
On Linux and MacOS, the `install.sh` script installs a pre-compiled binary to `$GOPATH/bin/dep`. It is safe to simply `rm` the installed `$GOPATH/bin/dep` file:
14+
15+
```sh
16+
$ rm $GOPATH/bin/dep
17+
```
18+
19+
On Windows, the `install.sh` script installs a pre-compiled binary to `$GOPATH/bin/dep.exe`. It is safe to simply delete this file to uninstall `dep`.
20+
21+
### If you installed `dep` using Homebrew on MacOS
22+
23+
If you installed `dep` using Homebrew on MacOS, uninstall `dep` also using Homebrew:
24+
25+
```sh
26+
$ brew uninstall dep
27+
```
28+
29+
### If you installed `dep` using `pacman` on Arch Linux
30+
31+
If you installed `dep` using `pacman` on Arch Linux, uninstall `dep` like so:
32+
33+
```sh
34+
$ pacman -R dep
35+
```

website/sidebars.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"docs": {
3-
"Guides": ["introduction", "installation", "new-project", "migrating", "daily-dep"],
3+
"Guides": ["introduction", "installation", "new-project", "migrating", "daily-dep", "uninstalling"],
44
"References": ["ensure-mechanics", "failure-modes", "the-solver", "deduction", "Gopkg.toml", "Gopkg.lock", "FAQ", "env-vars", "glossary"]
55
}
66
}

0 commit comments

Comments
 (0)