File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
327To simply install the utPLSQL into a new database schema and grant it to public, execute the script ` install_headless.sql ` .
You can’t perform that action at this time.
0 commit comments