Install Pro Drivers on a Linux Server
You can install Posit Professional Drivers on the same server where the following were previously installed:
- RStudio Server Pro
- Posit Workbench and/or
- Posit Connect
- Alternatively, install Posit Professional Drivers on your Linux desktop using DEB/RPM packages
Requirements
These drivers require one of the following Posit Professional products installed:
- RStudio Desktop Pro
- Posit Workbench
- Posit Connect
- Shiny Server Pro
Before you begin
It is important to review the Platform Support page to verify that Pro Drivers support your operating system.
Installation
This page includes instructions for downloading Posit professional products. Download and/or use of these products is governed under the terms of the Posit End User License Agreement. By downloading you agree to the terms posted there.
We strongly recommend upgrading drivers to prevent security and administrative issues. Update drivers system-wide with at least the same frequency as other Posit products.
Step 1. Install dependencies
- Install an ODBC driver manager using your system package manager: - sudo yum install unixODBC unixODBC-devel- Some binary-compatible distributions, such as Rocky Linux 9, may require the - --enablerepo=develflag to install the- unixODBC-develpackage.- sudo apt-get install unixodbc unixodbc-dev- Ubuntu 20.04 LTS (Focal Fossa) is no longer supported. - sudo zypper install unixODBC unixODBC-develImportantAdditional steps for using the Oracle database driver- If you are working with the Oracle database, you must: - Install a supported version of the Oracle Instant Client compatible with your platform/architecture. 
- Link the Oracle library directory to the Posit Pro Drivers library directory by running the following command: - ln -s /usr/lib/oracle/<version>/client64/lib/* /opt/rstudio-drivers/oracle/bin/lib/- The path to Oracle libraries may differ based on your platform and installation method. For example, on Linux systems it is commonly - /usr/lib/oracle/<version>/client64/lib/, where- <version>reflects your installed Oracle Instant Client version.ImportantManual steps on Ubuntu 24.04- The Oracle Instant Client links to the - libaiolibrary, which was renamed in Ubuntu 24.04 (noble).- You can use the following workaround until Oracle updates the instant client: - sudo ln -s /lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/oracle/<version>/client64/lib/libaio.so.1
 - For more information on connecting to Oracle Databases, see the Posit Solutions Engineering - Oracle documentation. ImportantAdditional steps for upgrading MySQL drivers to 2024.03 and higher- If you are using AWS RDS for MySQL, driver version 2024.03 removes the - mysql_native_passwordplugin, which is the default authentication plugin used in AWS RDS for MySQL. This removal breaks authentication with AWS RDS for MySQL databases unless the follow change runs in advance of the ODBC driver upgrade.- Connect to the destination MySQL database using your current MySQL drivers. 
- Once connected, execute the follow statement to change the authentication plugin for your Master Username/Master Password from the AWS Console: - ALTER USER 'ReplaceWithMasterUsername'@'%' IDENTIFIED WITH caching_sha2_password by 'ReplaceWithMasterPassword' REPLACE 'ReplaceWithMasterPassword';
- Run the same command for any other users that needs to connect to your AWS RDS for MySQL database, using their username and password in the command. 
- Proceed with the driver upgrade. 
 - Future resets of the Master Password in the AWS console reverts to using - mysql_native_passwordplugin, locking your user out of the database via the Posit Professional Drivers. Connect to the AWS RDS for MySQl database via alternate means to rerun the statement above.
Step 2. Download and install
- Download and install the Posit Professional Drivers:
curl -O https://cdn.rstudio.com/drivers/7C152C12/installer/rstudio-drivers-2025.07.0-1.el.x86_64.rpm
sudo yum install ./rstudio-drivers-2025.07.0-1.el.x86_64.rpmcurl -O https://cdn.rstudio.com/drivers/7C152C12/installer/rstudio-drivers_2025.07.0_amd64.deb
sudo apt-get install ./rstudio-drivers_2025.07.0_amd64.debcurl -O https://cdn.rstudio.com/drivers/7C152C12/installer/rstudio-drivers-2025.07.0-1.sles.x86_64.rpm
sudo zypper --no-gpg-checks install ./rstudio-drivers-2025.07.0-1.sles.x86_64.rpmAlternative method
To use an alternative download and installation method to install the Posit Professional Drivers other than .rpm or .deb packages, for example:
- Installing drivers to a location other than /opt/rstudio-drivers
- Installing drivers as a non-root user
- Installing a single driver or a subset of drivers
For this reason, we provide the drivers as a single compressed .tar file that can be manually extracted and moved to the desired location:
- Download Posit Professional Drivers as a single compressed .tarfile
- Refer to the detailed documentation for each driver for instructions on how to configure each driver.
Step 3. Configure driver locations
The drivers install to /opt/rstudio-drivers/. Specify The ODBC driver names and locations are in the /etc/odbcinst.ini configuration file.
View an example of this file at /opt/rstudio-drivers/odbcinst.ini.sample. The file is preconfigured with the names and locations of the Posit Professional Drivers.
- Use the following commands to backup your existing - /etc/odbcinst.inifile and write the contents of the example configuration file to- /etc/odbcinst.inion your system:- # Backup existing ODBC configuration file sudo cp /etc/odbcinst.ini /etc/odbcinst.ini.bak # Append sample ODBC configuration file into /etc/ cat /opt/rstudio-drivers/odbcinst.ini.sample | sudo tee -a /etc/odbcinst.ini- # Backup existing ODBC configuration file sudo cp /etc/unixODBC/odbcinst.ini /etc/unixODBC/odbcinst.ini.bak # Append sample ODBC configuration file into /etc/unixODBC/ cat /opt/rstudio-drivers/odbcinst.ini.sample | sudo tee -a /etc/unixODBC/odbcinst.ini
Step 4. Testing database connectivity
Test your database connections from the command line before creating new connections in Posit.
How to test:
- You can test connections by running isql(a command line tool for interactive SQL
- The isqlcommand requires you to create a data source name (DSN) first
- Additionally, you could be required to specify a userandpasswordargument for connection. See isql (1) - Linux Man Pages for additional information.
The /etc/odbc.ini configuration file defines the ODBC Data Source Names (DSNs).
To create a new DSN:
- Edit the file /etc/odbc.ini
- Add a new entry for your desired database type by copying over the example from /opt/rstudio-drivers/odbc.ini.sample
- Ensure that the Driversetting in the DSN refers to the corresponding driver name or path listed in/etc/odbcinst.ini
- Modify the entry with your desired connection parameters
For example, to add a SQL Server connection:
File: /etc/odbc.ini
[test]
Driver = SQLServer
Server = my.server.name
Database = dbname
Port = 1433To test this connection, run the following command:
isql -v testUpgrading
Installing the latest version of the Professional Drivers replaces the currently installed version.
Usage
How to utilize Posit’s Professional Drivers from R and Python.
Install the odbc package
Install the odbc package
Use the odbc R package to access your database with R:
- From an R prompt, install the - odbcpackage (installing- odbcalso installs- DBI, the database interface for R):- R Console - install.packages("odbc")Note- On Linux, the - odbcR package requires the following system dependencies in Linux:- C++11
- GCC 4.8 or later
 - On older versions of RHEL, you can install GCC 4.8 with RedHat Developer Toolset: - sudo yum install devtoolset-4-gcc-c++
Test connectivity
- Test your connection in R with odbc::odbc().- If you are using RStudio (the IDE), you can use the - New Connectiondialog to help you write the connection string, for example:- R Console - con <- DBI::dbConnect(odbc::odbc(), Driver = "Driver Name", Database = "Database", UID = "User", PWD = "Password", Server = "Server", Port = 5432)
- If you have a predefined DSN as shown in the Pro Drivers Installation section, you can connect using a DSN name, for example: - R Console - con <- DBI::dbConnect(odbc::odbc(), "DSN Name Here")
 
Use the pyodbc Python package to access your database with Python.
- From the terminal, install the - pyodbcpackage:- pip install pyodbcNoteDependencies- Per the - pyodbcinstallation documentation,- Starting with pyodbc 4.0.35, Linux wheels are available from PyPI. However, they don’t include their own copies of the unixODBC library files (because that caused problems), so if pip installs pyodbc from those wheel files then unixODBC must be installed separately. Ensure you have - unixodbcinstalled on the server.
Test connectivity
- Test your connection in Python with pyodbc.connect- If you are using credentials to connect to a database, include them either as a connection string or as keyword arguments, for example: - Python Interpreter - import pyodbc con=pyodbc.connect(driver='{Driver Name}', database='Database', uid='User', pwd='Password', server='Server', port=5432)
- If you have a predefined DSN as shown in the Pro Drivers Installation section, you can connect using a DSN name, for example: - Python Interpreter - import pyodbc con=pyodbc.connect('DSN=DSN Name Here')
 
Additional Resources
Visit the Solutions site for best practices, examples, and additional configurations to use when working with databases and the Posit Professional Drivers.
Uninstallation
- Use the following commands to uninstall the Posit Professional Drivers:
sudo yum remove rstudio-driverssudo apt-get remove rstudio-driverssudo zypper rm rstudio-driversTroubleshooting
Refer to Troubleshooting Posit Professional Drivers for additional information on troubleshooting the Connections pane in RStudio (the IDE).