Skip to content

Commit bc37c30

Browse files
committed
docs: add the way to install go for debian
1 parent 4b88dd2 commit bc37c30

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

configuration/README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ fast and simple terminal emulator (currently under test, if I like it)
213213
ln -sf ~/privatespace/github.com/egel/dotfiles/configuration/.config/alacritty ~/.config/alacritty
214214
```
215215

216-
## gvm
216+
## Golang
217+
218+
### Installation via gvm
217219

218220
| type | Version Manager |
219221
| ---- | --------------- |
@@ -238,7 +240,7 @@ $ which go
238240
go telemetry off
239241
```
240242

241-
**Alternatively go via brew**
243+
### Alternatively install via brew
242244

243245
If you do not care or use a single `go` version, you can install it via brew, or other package managers.
244246
I have added a sample configuration below for better reference:
@@ -262,6 +264,25 @@ if [[ $PATH != *"go"* && -d "$GOPATH" && -d "$GOROOT" ]]; then
262264
fi
263265
```
264266

267+
### Alternatively install via tarball
268+
269+
Added for Debian installations.
270+
271+
```sh
272+
# update
273+
sudo apt update && sudo apt upgrade
274+
275+
# download packages
276+
cd ~/Downloads
277+
wget https://golang.org/dl/go1.25.1.linux-amd64.tar.gz
278+
sudo tar -C /usr/local -xzf go1.25.1.linux-amd64.tar.gz
279+
280+
# then add to .profile or .zshrc (my .zshrc already have it!)
281+
echo "export PATH=/usr/local/go/bin:${PATH}" | sudo tee -a $HOME/.profile
282+
283+
source $HOME/.profile
284+
```
285+
265286
### Go global packages
266287

267288
```sh

0 commit comments

Comments
 (0)