Skip to content

Commit 42c54f5

Browse files
Update README.md
1 parent 3b6bd5a commit 42c54f5

1 file changed

Lines changed: 57 additions & 5 deletions

File tree

README.md

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This program requires an API key to function. You may sign up for a free API key
1010
Installation
1111
============
1212

13-
#### Go Installation
13+
#### `go install` Installation
1414

1515
```bash
1616
go install github.com/ip2location/ip2location-io-cli/ip2locationio@latest
@@ -30,19 +30,71 @@ $GOPATH/bin/ip2locationio
3030
#### Debian/Ubuntu (amd64)
3131

3232
```bash
33-
curl -LO https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.1/ip2location-io-1.0.1.deb
34-
sudo dpkg -i ip2location-io-1.0.1.deb
33+
curl -LO https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/ip2location-io-1.0.2.deb
34+
sudo dpkg -i ip2location-io-1.0.2.deb
3535
```
3636

37-
#### Ubuntu
3837

39-
```
38+
#### Ubuntu PPA
39+
40+
```bash
4041
sudo add-apt-repository ppa:ip2location/ip2locationio
4142
sudo apt update
4243
sudo apt install ip2location-io
4344
```
4445

4546

47+
### Windows Powershell
48+
49+
Launch Powershell as administrator then run the below:
50+
51+
```bash
52+
iwr -useb https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/windows.ps1 | iex
53+
```
54+
55+
56+
### Download pre-built binaries
57+
58+
Supported OS/architectures below:
59+
60+
```
61+
darwin_amd64
62+
darwin_arm64
63+
dragonfly_amd64
64+
freebsd_386
65+
freebsd_amd64
66+
freebsd_arm
67+
freebsd_arm64
68+
linux_386
69+
linux_amd64
70+
linux_arm
71+
linux_arm64
72+
netbsd_386
73+
netbsd_amd64
74+
netbsd_arm
75+
netbsd_arm64
76+
openbsd_386
77+
openbsd_amd64
78+
openbsd_arm
79+
openbsd_arm64
80+
solaris_amd64
81+
windows_386
82+
windows_amd64
83+
windows_arm
84+
```
85+
86+
After choosing a platform `PLAT` from above, run:
87+
88+
```bash
89+
# for Windows, use ".zip" instead of ".tar.gz"
90+
curl -LO https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/ip2locationio_1.0.2_${PLAT}.tar.gz
91+
# OR
92+
wget https://github.com/ip2location/ip2location-io-cli/releases/download/v1.0.2/ip2locationio_1.0.2_${PLAT}.tar.gz
93+
94+
tar -xvf ip2locationio_1.0.2_${PLAT}.tar.gz
95+
mv ip2locationio_1.0.2_${PLAT} /usr/local/bin/ip2locationio
96+
```
97+
4698

4799
Usage Examples
48100
==============

0 commit comments

Comments
 (0)