Skip to content

Commit 6947667

Browse files
authored
Update install.sh.md
1 parent 8a9fe2b commit 6947667

File tree

1 file changed

+3
-84
lines changed

1 file changed

+3
-84
lines changed

docs/install/install.sh.md

Lines changed: 3 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ and macOS.
44

55
To install, run:
66

7-
```bash
7+
```shell
88
curl -fsSL https://coder.com/install.sh | sh
99
```
1010

1111
You can preview what occurs during the install process:
1212

13-
```bash
13+
```shell
1414
curl -fsSL https://coder.com/install.sh | sh -s -- --dry-run
1515
```
1616

1717
You can modify the installation process by including flags. Run the help command
1818
for reference:
1919

20-
```bash
20+
```shell
2121
curl -fsSL https://coder.com/install.sh | sh -s -- --help
2222
```
2323

@@ -27,87 +27,6 @@ manually via `coder server` or as a system package.
2727
By default, the Coder server runs on `http://127.0.0.1:3000` and uses a
2828
[public tunnel](../admin/configure.md#tunnel) for workspace connections.
2929

30-
## PATH conflicts
31-
32-
It's possible to end up in situations where you have multiple `coder` binaries
33-
in your `PATH`, and your system may use a version that you don't intend. Your
34-
`PATH` is a variable that tells your shell where to look for programs to run.
35-
36-
You can check where all of the versions are by running `which -a coder`.
37-
38-
For example, a common conflict on macOS might be between a version installed by
39-
Homebrew, and a version installed manually to the /usr/local/bin directory.
40-
41-
```console
42-
$ which -a coder
43-
/usr/local/bin/coder
44-
/opt/homebrew/bin/coder
45-
```
46-
47-
Whichever binary comes first in this list will be used when running `coder`
48-
commands.
49-
50-
### Reordering your PATH
51-
52-
If you use bash or zsh, you can update your `PATH` like this:
53-
54-
```shell
55-
# You might want to add this line to the end of your ~/.bashrc or ~/.zshrc file!
56-
export PATH="/opt/homebrew/bin:$PATH"
57-
```
58-
59-
If you use fish, you can update your `PATH` like this:
60-
61-
```shell
62-
# You might want to add this line to the end of your ~/.config/fish/config.fish file!
63-
fish_add_path "/opt/homebrew/bin"
64-
```
65-
66-
> ℹ If you ran install.sh with a `--prefix` flag, you can replace
67-
> `/opt/homebrew` with whatever value you used there. Make sure to leave the
68-
> `/bin` at the end!
69-
70-
Now we can observe that the order has changed:
71-
72-
```console
73-
$ which -a coder
74-
/opt/homebrew/bin/coder
75-
/usr/local/bin/coder
76-
```
77-
78-
### Removing unneeded binaries
79-
80-
If you want to uninstall a version of `coder` that you installed with a package
81-
manager, you can run whichever one of these commands applies:
82-
83-
```shell
84-
# On macOS, with Homebrew installed
85-
brew uninstall coder
86-
```
87-
88-
```shell
89-
# On Debian/Ubuntu based systems
90-
sudo dpkg -r coder
91-
```
92-
93-
```shell
94-
# On Fedora/RHEL-like systems
95-
sudo rpm -e coder
96-
```
97-
98-
```shell
99-
# On Alpine
100-
sudo apk del coder
101-
```
102-
103-
If the conflicting binary is not installed by your system package manager, you
104-
can just delete it.
105-
106-
```shell
107-
# You might not need `sudo`, depending on the location
108-
sudo rm /usr/local/bin/coder
109-
```
110-
11130
## Next steps
11231

11332
- [Configuring Coder](../admin/configure.md)

0 commit comments

Comments
 (0)