Installing PSQL Server, Vx Server, and Client for Linux-based Systems
 
Installing PSQL Server, Vx Server, and Client for Linux-based Systems
Instructions for Linux, macOS, and Raspbian Users
The following topics explain how to install and uninstall PSQL on Linux, macOS, and Raspbian.
Before You Install PSQL on Linux, macOS, or Raspbian
Installing PSQL Using RPM
Installing PSQL Using TAR
Installing PSQL Using DMG on macOS
After Installing PSQL on Linux, macOS, or Raspbian
Uninstalling PSQL on Linux, macOS, or Raspbian
Before You Install PSQL on Linux, macOS, or Raspbian
Before installing or upgrading PSQL Server, Vx Server, or Client, review the following information:
System requirements listed on the Actian website.
Preparing to Install PSQL – Important information, including platform-specific notes.
Release Notes – Located in readme_psql.htm on the website and containing late-breaking news that may not be included in the user documentation.
You must be logged in as root to install any of the products. If you are installing from a CD, you must be at the CD root directory.
If you have any trouble with an installation, see Troubleshooting After Installation.
Full and Client Installations
PSQL offers the following 64-bit full and client installations:
TAR packages for Linux, macOS, and Raspbian
RPM packages for Linux
DMG packages for macOS
A full installation includes the engine and client files, utilities, and the complete user documentation. Client installations provide only files needed to support a client, including utilities and documentation. If you have 32-bit applications, support is provided as an additional client access installation. The following table lists the installation packages.
Table 8 Full and Client Installations on Linux, macOS, and Raspbian
PSQL Product
Installation
Contains
Server 64-bit
Full
Engine and client files, utilities, and documentation.
Server 32-bit
(Raspbian only)
Subset of full server
Engine and client files, a subset of CLI utilities, no documentation. See Utilities on Raspbian for the list of items provided.
Vx Server 64-bit
Full
Engine and client files, utilities, and documentation.
Client 64-bit
Client
Client files, utilities, and documentation.
Client 32-bit
(Raspbian only)
Subset of client
Client files, a subset of CLI utilities, no documentation. See Utilities on Raspbian for the list of items provided.
Client Access 32-bit
(Linux only)
Client
Client files and limited 32-bit utilities. Installed after one of the other three products to enable database access for 32-bit applications.
Note: Glibc and stdc++ packages are prerequisites for the Client Access installation. Before installing Client Access, you can add them from the repository of your Linux distribution using a yum command:
yum install glibc.i686 libstdc++.i686
Utilities on Raspbian
On Raspbian systems, PSQL provides a subset of the command line utilities that are available in full installations. These utilities consist of the following:
bcfg
btadmin
clipaadm
dsnadd
psregedit
pvddl
bdu
butil
dbdefrag
isql
psregsvr
pvnetpass
bmon
clilcadm
dbmaint
licgetauth
pvdbpass
rbldcli
Connecting from a Linux-Based Client to a Windows Server or Vx Server
The Server Message Block (SMB) protocol enables network access to the PSQL MicroKernel Engine from a Linux, macOS, or Raspbian client at the Btrieve file level. You can find information about SMB-compatible file sharing at www.samba.org. For more information on remote Btrieve-level access, see Supported Path Formats for Samba.
If your database server engine fails to meet certain installation requirements, your applications may receive the status code “ 3031: Linux requester cannot connect to this server,” indicating a client-server incompatibility. In some cases, you may receive “ 94: The application encountered a permission error.”
Installing PSQL Using RPM
The RPM format allows you to install PSQL if your Linux distribution contains the Red Hat Package Manager (RPM).
The following topics explain how to install PSQL products using RPM:
Installing PSQL Server or Vx Server for Linux - RPM
Installing PSQL Client for Linux - RPM
If you have any trouble with installation, see Troubleshooting After Installation.
Note macOS does not support RPM. Instead, use the DMG or TAR installation method.
Installing PSQL Server or Vx Server for Linux - RPM
Choose the package name to use for the installation using the following table and the distribution media.
Table 9 Server Package Names - RPM
Installation Type
Platform
Package Name
Server 64-bit
x86-64
PSQL-yy.yy-zzz.zzz.x86_64.rpm
Vx Server 64-bit
x86-64
PSQL-Vx-yy.yy-zzz.zzz.x86_64.rpm
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Installation
Upgrade Installation
First-Time Installation
The package manager copies all necessary files onto disk (default location is /usr/local/psql) and runs a post-installation script which performs the following tasks:
Creates user psql and group pvsw
Sets user:group ownership to psql:pvsw for the installed files
Authorizes a trial license
Creates a new ODBC DSN (data source name) for the Demodata test database
Creates startup and shutdown scripts for PSQL daemons
Launches the PSQL daemon (mkded)
To install PSQL Server or Vx Server using RPM
Note If you have a previous version of PSQL on your Linux machine, see Upgrade Installation.
1 Log in as the root user.
2 Assuming the RPM package is in the current directory, enter the following command:
rpm -ivh <server_package_name>
If the RPM package is in another directory, preface the package name with a path.
Upgrade Installation
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new release of the product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Client for Linux - RPM
The name of the PSQL Client installation package follows these conventions:
Table 10 Client Package Names - RPM
Installation Type
Platform
Package Name
Client 64-bit
x86-64
PSQL-Client-yy.yy-zzz.zzz.x86_64.rpm
Client Access 32-bit
x86-64
PSQL-Client-Access-yy.yy-zzz.zzz.x86_64.rpm
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Installation
If you need to provide 32-bit client access for an application, you must install the PSQL Client 64-bit first, and then add PSQL Client Access 32-bit. Otherwise, the steps are the same.
To install PSQL Client using RPM
1 Log in as the root user.
2 Assuming the RPM package is in the current directory, execute the following command.
rpm -ivh <client_package_name>
If the RPM package is in another directory, preface the package name with a path.
Upgrade Installation
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new release of the product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Using TAR
The tape archive (TAR) format allows you to install PSQL on Linux, macOS, and Raspbian. The following topics explain how to install PSQL products using TAR:
Installing PSQL Server or Vx Server for Linux and Raspbian - TAR
Installing PSQL Server or Vx Server for macOS - TAR
Installing PSQL Client for Linux and Raspbian - TAR
Installing PSQL Client for macOS - TAR
If you have any trouble with installation, see Troubleshooting After Installation.
Installing PSQL Server or Vx Server for Linux and Raspbian - TAR
The name of the PSQL Server installation package follows these conventions.
Table 11 Server Package Names - TAR
Installation Type
Platform
Package Name
Server 64-bit
x86-64
PSQL-linux-yy.yy-zzz.zzz.x86_64.tar.gz
Server 64-bit
ARM64
PSQL-linux-yy.yy-zzz.zzz.aarch64.tar.gz
Vx Server 64-bit
x86-64
PSQL-Vx-linux-yy.yy-zzz.zzz.x86_64.tar.gz
Vx Server 64-bit
ARM64
PSQL-Vx-linux-yy.yy-zzz.zzz.aarch64.tar.gz
IoT Server 32-bit
ARM32
Zen-IoT-linux-yy.yy-zzz.zzz.armhf.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Server Installation on Linux and Raspbian
Upgrade Server Installation on Linux and Raspbian
First-Time Server Installation on Linux and Raspbian
The 64-bit installation scripts perform the following tasks:
Verify necessary permissions to complete install
Create user psql and group pvsw if they do not exist
Sets user:group ownership to psql:pvsw for the installed files if not already set
To install PSQL Server or Vx Server on Linux or Raspbian using TAR
1 Log in as the root user.
2 Change to the /usr/local directory.
cd /usr/local
3 Enter the following command to copy the .tar file to /usr/local.
For example, if you downloaded the installation package to /home/bholly:
cp /home/bholly/<server_package_name> .
4 Unpack the .tar file using the following command.
tar -zxf <server_package_name>
5 Change directories to the /usr/local/psql/etc folder where the installation scripts reside.
cd psql/etc
6 Run the preinstallation script:
./preinstall.sh
7 Run the postinstallation script:
./postinstall.sh
The installation is complete. For additional information, see Installing PSQL Using TAR.
Upgrade Server Installation on Linux and Raspbian
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Server or Vx Server for macOS - TAR
The name of the PSQL Server installation package follows these conventions.
Table 12 Server Package Names - TAR
Installation Type
Platform
Package Name
Server 64-bit
x86-64
PSQL-macosx-yy.yy-zzz.zzz.x86_64.tar.gz
Vx Server 64-bit
x86-64
PSQL-Vx-macosx-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Server Installation on macOS
Upgrade Server Installation on macOS
First-Time Server Installation on macOS
The 64-bit installation scripts perform the following tasks:
Verify necessary permissions to complete install
Create user psql and group pvsw if they do not exist
Sets user:group ownership to psql:pvsw for the installed files if not already set
To install PSQL Server or Vx Server on macOS using TAR
You must be logged in as a user with administrator rights to use the sudo command.
1 Open a terminal window by entering terminal in a Spotlight search.
2 At the prompt, enter a sudo command like the following to gain administrative rights to install applications:
sudo -i bash -l
3 PSQL installation requires a /usr/local directory. Use the following command to create it:
mkdir /usr/local
4 Change directories to the newly created location.
cd /usr/local
5 Unpack the .tar file using the tar command.
For example, if you downloaded the installation package to your Desktop:
tar -zxf /Users/<name>/Desktop/<server_package_name>
6 Change directories to /usr/local/psql/etc where the installation scripts reside.
cd psql/etc
7 Run the preinstallation script:
./preinstall.sh
8 Run the postinstallation script:
./postinstall.sh
The installation is complete. For additional information, see After Installing PSQL on Linux, macOS, or Raspbian.
Upgrade Server Installation on macOS
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Client for Linux and Raspbian - TAR
The name of the PSQL Client installation package follows these conventions.
Table 13 Client Package Names - TAR
Installation Type
Platform
Package Name
Client 64-bit
x86-64
PSQL-Client-linux-yy.yy-zzz.zzz.x86_64.tar.gz
Client 64-bit
ARM64
PSQL-Client-linux-yy.yy-zzz.zzz.aarch64.tar.gz
Client 32-bit
ARM32
Zen-IoT-Client-linux-yy.yy-zzz.zzz.armhf.tar.gz
Client Access 32-bit
x86
PSQL-Client-Access-linux-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Client Installation on Linux and Raspbian
If you need to provide 32-bit client access for an application, you must install the PSQL Client 64-bit first, and then add PSQL Client Access 32-bit. The installation steps are the same except for the pre- and post-install scripts, as described below. Note that 32-bit client access does not apply to Raspbian systems.
To install PSQL Client for Linux Using TAR
1 Log in as the root user.
2 Change to the /usr/local directory.
cd /usr/local
3 Enter the following command to copy the .tar file to /usr/local.
For example, if you downloaded the installation package to /home/bholly:
cp /home/bholly/<client_package_name> .
4 Unpack the .tar file using the following command.
tar -zxf <client_package_name>
The unpacking action creates a directory named psqlclient.
5 Change directories to the /usr/local/psql/etc folder where the PSQL installation scripts reside.
cd psql/etc
6 Run the preinstallation script needed by the client package that you are installing:
Client 64-bit: ./clientpreinstall.sh
or
Client Access 32-bit: ./clientaccesspreinstall.sh
7 Run the postinstallation script needed by the client package that you are installing:
Client 64-bit: ./clientpostinstall.sh
or
Client Access 32-bit: ./clientaccesspostinstall.sh
The TAR installation is complete. For additional information, see After Installing PSQL on Linux, macOS, or Raspbian and Setting Up Network Communications for Clients.
Upgrade Client Installation on Linux and Raspbian
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Client for macOS - TAR
The name of the PSQL Client installation package follows these conventions.
Table 14 Client Package Names - TAR
Installation Type
Platform
Package Name
Client 64-bit
x86-64
PSQL-Client-macosx-yy.yy-zzz.zzz.x86_64.tar.gz
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Client Installation on macOS
To install PSQL Client for macOS using TAR
You must be logged in as a user with administrator rights to use the sudo command.
1 Open a terminal window by entering terminal in a Spotlight search.
2 At the prompt, enter a sudo command like the following to gain administrative rights to install applications:
sudo -i bash -l
3 PSQL installation requires a /usr/local directory. Use the following command to create it:
mkdir /usr/local
4 Change directories to the newly created location.
cd /usr/local
5 Unpack the .tar file using the tar command.
For example, if you downloaded the installation package to your Desktop:
tar -zxf /Users/<name>/Desktop/<client_package_name>
The unpacking action creates a directory named psqlclient.
6 Change directories to the /usr/local/psql/etc folder where the PSQL installation scripts reside.
cd psql/etc
7 Run the preinstallation script needed by the client package that you are installing:
./clientpreinstall.sh
8 Run the postinstallation script needed by the client package that you are installing:
./clientpostinstall.sh
The TAR installation is complete. For additional information, see After Installing PSQL on Linux, macOS, or Raspbian and Setting Up Network Communications for Clients.
Upgrade Client Installation on macOS
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Using DMG on macOS
On macOS, you can install PSQL using a native Apple disk image (DMG). A DMG is a container file commonly used to distribute applications for macOS.
The following topics explain how to install PSQL products using DMG:
Installing PSQL Server or Vx Server for macOS - DMG
Installing PSQL Client for macOS - DMG
If you have any trouble with installation, see Troubleshooting After Installation.
Installing PSQL Server or Vx Server for macOS - DMG
The name of the PSQL Server DMG follows these conventions.
Table 15 Server Disk Image - DMG
Installation Type
Platform
Disk Image
Server 64-bit
x86-64
PSQL-macosx-yy.yy-zzz.zzz.x86_64.dmg
Vx Server 64-bit
x86-64
PSQL-Vx-macosx-yy.yy-zzz.zzz.x86_64.dmg
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Server Installation on macOS
Upgrade Server Installation on macOS
First-Time Server Installation on macOS
The 64-bit installation scripts perform the following tasks:
Verify necessary permissions to complete install
Create user psql and group pvsw if they do not exist
Sets user:group ownership to psql:pvsw for the installed files if not already set
To install PSQL Server or Vx Server on macOS using DMG
1 Copy the .dmg file to your system.
2 Double-click the file to mount the disk image and open a window that shows three items:
PSQL installer
Readme file containing release notes in HTML
License agreement in PDF
3 To open the installer, double-click it and then follow the instructions.
4 When asked, enter an account name and password with administrator rights.
5 When the installer displays the dialog saying that PSQL has been installed, you can click Show Me to see it or click Continue.
6 In the dialog offering information about PSQL, you can click Show Me to see it or click Continue to unmount the .dmg file and finish.
The installation is complete. For possible next steps, see After Installing PSQL on Linux, macOS, or Raspbian.
Upgrade Server Installation on macOS
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
Installing PSQL Client for macOS - DMG
The name of the PSQL Client DMG follows these conventions.
Table 16 Client Disk Image - DMG
Installation Type
Platform
Disk Image
Client 64-bit
x86-64
PSQL-Client-macosx-yy.yy-zzz.zzz.x86_64.dmg
In the file name, yy.yy is a release number and zzz.zzz is a build number. See the file for its actual name.
Your installation is either a first time, with no previous version, or an upgrade to an existing installed version.
First-Time Client Installation on macOS
To install PSQL Client for macOS using DMG
1 Copy the .dmg file to your system.
2 Double-click the file to mount the disk image and open a window that shows three items:
PSQL installer
Readme file containing release notes in HTML
License agreement in PDF
3 To open the installer, double-click it and then follow the instructions.
4 When asked, enter an account name and password with administrator rights.
5 When the installer displays the dialog saying that PSQL has been installed, you can click Show Me to see it or click Continue.
6 In the dialog offering information about PSQL, you can click Show Me to see it or click Continue to unmount the .dmg file and finish.
The installation is complete. For possible next steps, see After Installing PSQL on Linux, macOS, or Raspbian and Setting Up Network Communications for Clients.
Upgrade Client Installation on macOS
If you have a previous version of PSQL already installed, you must uninstall that version and then install the new PSQL product. See Uninstalling PSQL on Linux, macOS, or Raspbian for more information.
After Installing PSQL on Linux, macOS, or Raspbian
The following topics may be useful after you install PSQL on Linux, macOS, or Raspbian:
Verifying Installed Products with RPM
Server Configuration
Client Configuration
Licensing
Common Questions After Installation
Using PSQL on Linux, macOS, and Raspbian
Verifying Installed Products with RPM
The following table provides commands with which you can verify which packages the RPM packager installed. The commands are case sensitive.
Table 17 RPM Commands To Verify PSQL Packages Installed
PSQL Package
RPM Command to Verify Installation
Server
rpm -q PSQL
Vx Server
rpm -q PSQL-Vx
Client 64-bit
rpm -q PSQL-Client
Returns the specific client version installed (PSQL-Client-release-build).
Client Access 32-bit
rpm -q PSQL-Client-Access
Returns the specific client version installed (PSQL-Client-Access-release-build).
Note: The 32-bit Client Access package should always be installed after a 64-bit product.
All installed
rpm -qa | grep PSQL
Verifying Database Engine is Running
Optionally, after the installation script finishes, you can verify that the database engine is running with the ps command. To do this, enter the following at a command prompt:
ps -e | egrep mkded
Server Configuration
Generally, the default configuration settings for PSQL Server and Vx Server are sufficient. See Configuration for settings that you may want or need to set.
If you want to explore all of the configuration settings, see Configuration Reference in Advanced Operations Guide.
Client Configuration
All configuration settings for the PSQL client are discussed in Linux, macOS, and Raspbian Client Configuration Properties in Advanced Operations Guide.
In this guide, see also Installing PSQL Clients for Windows and Setting Up Network Communications for Clients for additional information about clients.
Linux, macOS, and Raspbian Clients and the Monitor Utility
This information applies only to Linux, macOS, or Raspbian clients that use a static IP address. Ignore this subsection if you use DHCP and have a DSN to resolve named addresses.
When you monitor clients using the PSQL Monitor utility, the client IP address that gets transmitted across the network originates from the hosts file. If the system name and IP have not been added to the hosts file, network communication uses the local host IP address, which is 127.0.0.1 or ::1 (a loopback address).
If you change the loopback address to the correct IP, or if you add the system name and IP to the hosts file on the client, the client name is displayed correctly in the Monitor utility.
Licensing
Once you have completed installation, you may need to update your license to increase the user count for PSQL Server, or to increase the session count or data in use limits for PSQL Vx Server. See Increase User Count or Data in Use in PSQL User's Guide.
Common Questions After Installation
If you have problems with your installation, see Troubleshooting After Installation or get help online from the PSQL knowledge base at the Actian website. The following are common questions after installation of the products:
Where Do Files Reside After Installing PSQL on Linux, macOS, and Raspbian?
How Do I Access the Documentation?
What If I Get Errors Trying to Start the Utilities?
Where Do Files Reside After Installing PSQL on Linux, macOS, and Raspbian?
The following table lists the primary directories and files that result from installing the PSQL products on Linux, macOS, or Raspbian. $PVSW_ROOT refers to the root directory where the files are installed. By default it is set to /usr/local/psql. Unless otherwise noted, the primary directories and files are the same for 32- and 64-bit products.
For an upgrade installation, your existing PSQL files were updated to the latest versions.
Table 18 Primary Directories and Files for PSQL Products Installed on Unix-based Systems
Path from $PVSW_ROOT
Primary Files
Description
Applies to Installation of
./
LICENSE
License information
Server
./bin
 
Binary files, executable utilities and so forth
Server and Client
./bin/plugins
 
A directory pertaining to files for the utilities and documentation
Server and Client
./data/Demodata
 
Sample PSQL database
Server
./data/samples
 
Sample Btrieve files, alternate collating sequence file and the DefaultDB system database
Server
./etc
 
 
Server and Client
 
.PSRegistry
PSQL registry of configuration settings (this directory and its subordinate directories)
Server
 
btpasswd
User passwords file
Server
 
dbnames.cfg
Master table of database names
Server
 
odbc.ini
ODBC settings
Server and Client
 
 
Shell scripts for the following:
pre-product installation
post-product installation
pre-product uninstall
post-product uninstall
Server and Client
./lib
 
Library of 32-bit shared objects
Server and Client
./lib64
 
Library of 64-bit shared objects
Server and Client
./log
 
Transaction log files directory
Server and Client
./man/man1
 
Man pages for the command-line utilities
Server and Client
How Do I Access the Documentation?
The documentation installed with PSQL Server includes the following:
Man pages for the command line utilities
PSQL Documentation Library
PSQL Release Notes
Man Pages
Man pages are provided for the command line utilities. To make these man pages available, add $PVSW_ROOT/man to the MANPATH environment variable.
Man pages are installed with PSQL Server, Vx Server, and with PSQL Client. Command line utilities are also covered in the PSQL user documentation.
Documentation Library
The PSQL Documentation Library contains the complete set of user documentation, including the user documentation for the PSQL engine and software developer’s kit.
The documentation library is integrated into PSQL Control Center (PCC). In the PCC window, you can access the documentation library in the Welcome tab opened from the Help menu or by pressing F1 (Windows) or Shift F1 (Linux).
Release Notes
The release notes in readme_psql.htm contain general information about the release, sometimes including late-breaking advice not yet covered in the user documentation. These release notes are located in the /usr/local/psql/docs/ directory and are linked in the Welcome tab opened from the Help menu in PCC. The Actian website posts the latest version of the release notes.
What If I Get Errors Trying to Start the Utilities?
See Starting PCC on Linux in PSQL User's Guide and Starting DDF Builder from a Command Line in DDF Builder User’s Guide.
Uninstalling PSQL on Linux, macOS, or Raspbian
The following topics explain how to remove PSQL from your system.
Removing a PSQL RPM Package
Removing a PSQL TAR Package
Removing a PSQL DMG
Removing a PSQL RPM Package
The following table lists the RPM commands to uninstall PSQL packages on Linux. You must log in as the root user using the su command before executing any of the commands.
Table 19 RPM Commands to Uninstall the PSQL Packages
To Uninstall This Package
Use This RPM Command
Server 64-bit
rpm -e PSQL
Vx Server 64-bit
rpm -e PSQL-Vx
Client 64-bit
rpm -e PSQL-Client
Client Access 32-bit
rpm -e PSQL-Client-Access
Note: Client Access should be removed before removing the 64-bit package to which it has been added.
Note Uninstalling does not remove the system databases DEFAULTDB and PERVASIVESYSDB.
Removing a PSQL TAR Package
This topic provides a table that lists the shell scripts used to remove various PSQL installations. The uninstalling of a TAR package is slightly different for Linux, macOS, and Raspbian, as shown in the following steps.
To uninstall a PSQL TAR installation on Linux and Raspbian
1 At a command prompt, log in as the root user using the su command.
2 Change directories to the /usr/local/psql/etc folder where the PSQL installation scripts reside.
cd /usr/local/psql/etc
3 Use the uninstall scripts from the following table that apply to your installation.
To uninstall a PSQL TAR installation on macOS
You must be logged in as a user with administrator rights to use the sudo command.
1 Open a terminal window by entering terminal in a Spotlight search.
2 At the prompt, enter a sudo command like the following to gain administrative rights to install applications:
sudo -i bash -l
3 Change directories to the /usr/local/psql/etc folder where the PSQL installation scripts reside.
cd /usr/local/psql/etc
4 Use the uninstall scripts from the following table that apply to your installation.
Table 20 TAR Commands to Uninstall the PSQL Packages
Package To Uninstall
Scripts To Execute from /usr/local/psql/etc, Where They Reside
Server 64-bit
Vx Server 64-bit
./preuninstall.sh
./postuninstall.sh
The scripts must be executed in sequence: preuninstall first, followed by postuninstall.
Client 64-bit
./clientpreuninstall.sh
./clientpostuninstall.sh
The scripts must be executed in sequence: clientpreuninstall first, followed by clientpostuninstall.
Client Access 32-bit
(Linux only)
./clientaccesspreuninstall.sh
./clientaccesspostuninstall.sh
The scripts must be executed in sequence: clientaccesspreuninstall first, followed by clientaccesspostuninstall.
Note: Client Access should be uninstalled before uninstalling the 64-bit package to which it has been added.
Note Uninstalling does not remove the system databases DEFAULTDB and PERVASIVESYSDB.
Removing a PSQL DMG
1 In Finder, open Applications > Actian PSQL vxx and double-click PSQL Uninstaller.
2 The uninstaller displays a notice about license keys remaining authorized. Do one of the following:
Click Cancel to exit from the uninstaller if you need to manage your product keys before continuing. For more information, see License Administration Tasks in PSQL User's Guide.
or
Click Continue.
3 When asked, enter an account name and password with administrator rights.
4 When the installer displays the dialog saying that PSQL has been uninstalled, click OK.
Note Uninstalling does not remove the system databases DEFAULTDB and PERVASIVESYSDB.