summaryrefslogtreecommitdiff
path: root/ubuntu-18.04-go/setup.sh
blob: 7afe5b5b8ba9e5cbbb467c7ec234c1da009d15f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e
apt-get update
apt-get upgrade
apt-get install -y curl build-essential
cd /root
curl -L "https://go.dev/dl/go1.21.5.linux-amd64.tar.gz" -o go.tar.gz
cd /usr/local
tar xf /root/go.tar.gz
rm -f /root/go.tar.gz
apt-get remove --purge -y curl
apt-get autoremove --purge -y
apt-get clean
rm -rf /var/lib/apt/lists/*