Skip to content

Commit

Permalink
content: Update required packages
Browse files Browse the repository at this point in the history
[deploy]

Signed-off-by: Khusika Dhamar Gusti <mail@khusika.dev>
  • Loading branch information
khusika committed Nov 8, 2023
1 parent cd360b6 commit e74f11c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/posts/build-and-optimize-hugo-binary/index.en.md
Expand Up @@ -39,19 +39,19 @@ I wrote this only for `linux/amd64` environment
{{< /admonition >}}

1. First of all, these are required packages to build Hugo binary:
- [GoLang](https://go.dev/dl/) _Use go1.21.x_
- [GoLang](https://go.dev/dl/)
- [UPX](https://upx.github.io/)

2. Install required packages

a. Setup GoLang
```bash
wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz
wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
```

b. Setup UPX
```bash
wget https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-amd64_linux.tar.xz && sudo tar -C /usr/local -xf upx-4.1.0-amd64_linux.tar.xz --transform 's/upx-4.1.0-amd64_linux/upx/'
wget https://github.com/upx/upx/releases/download/v4.2.1/upx-4.2.1-amd64_linux.tar.xz && sudo tar -C /usr/local -xf upx-4.2.1-amd64_linux.tar.xz --transform 's/upx-4.2.1-amd64_linux/upx/'
```

3. Add all environment into `.profile`
Expand Down

0 comments on commit e74f11c

Please sign in to comment.