Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c79fac

Browse files
authored
Merge pull request #303 from jgebal/feature/doc_update_download_latest
Updated documentation.
2 parents de9b5c1 + 62706bd commit 9c79fac

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

docs/userguide/install.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Downloading latest version of utPLSQL
2+
3+
It is quite easy to download latest version of utPLSQL from github on Unix machines.
4+
Here is a little snippet that can be handy for downloading latest version.
5+
```bash
6+
#!/bin/bash
7+
# Get the url to latest release "zip" file
8+
UTPLSQL_DOWNLOAD_URL=$(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
9+
# Extract file name from the URL
10+
UTPLSQL_DOWNLOAD_FILE="${UTPLSQL_DOWNLOAD_URL##*/}"
11+
# Extract the output directory from URL
12+
UTPLSQL_DIR="${UTPLSQL_DOWNLOAD_FILE%.*}"
13+
# Download the latest utPLSQL release "zip" file
14+
curl -LOk "${UTPLSQL_DOWNLOAD_URL}"
15+
# Extract downloaded "zip" file
16+
unzip -q "${UTPLSQL_DOWNLOAD_FILE}"
17+
```
18+
19+
You may download with a one-liner if that is more convenient.
20+
```bash
21+
#!/bin/bash
22+
curl -LOk $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
23+
```
24+
125
# Installation
226

327
To simply install the utPLSQL into a new database schema and grant it to public, execute the script `install_headless.sql`.

0 commit comments

Comments
 (0)