How To Install libreoffice-base-drivers on Ubuntu 18.04

In this tutorial we learn how to install libreoffice-base-drivers on Ubuntu 18.04. libreoffice-base-drivers is Database connectivity drivers for LibreOffice

Introduction

In this tutorial we learn how to install libreoffice-base-drivers on Ubuntu 18.04.

What is libreoffice-base-drivers

libreoffice-base-drivers is:

LibreOffice is a full-featured office productivity suite that provides a near drop-in replacement for Microsoft(R) Office.

This package contains the database connectivity drivers used by LibreOffices database functionality:

  • ODBC
  • JDBC
  • dBase
  • Calc
  • Flat files
  • MySQL

You can extend this by installing:

  • unixodbc: ODBC database support
  • libmyodbc | odbc-postgresql | libsqliteodbc | tdsodbc | mdbtools: ODBC drivers for:
    • MySQL
    • PostgreSQL
    • SQLite
    • MS SQL / Sybase SQL
    • *.mdb (JET / MS Access)
  • libmysql-java | libpg-java | libjtds-java: JDBC Drivers for:
    • MySQL
    • PostgreSQL
    • MS SQL Server and Sybase
  • libreoffice-sdbc-hsqldb: embedded HSQLDB SDBC Driver
  • libreoffice-sdbc-firebird: Firebird SDBC Driver
  • libreoffice-sdbc-postgresql: PostgreSQL SDBC Driver
  • libreoffice-mysql-connector: “native” MySQL Connector

There are three methods to install libreoffice-base-drivers on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libreoffice-base-drivers Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libreoffice-base-drivers using apt-get by running the following command:

sudo apt-get -y install libreoffice-base-drivers

Install libreoffice-base-drivers Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libreoffice-base-drivers using apt by running the following command:

sudo apt -y install libreoffice-base-drivers

Install libreoffice-base-drivers Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libreoffice-base-drivers using aptitude by running the following command:

sudo aptitude -y install libreoffice-base-drivers

How To Uninstall libreoffice-base-drivers on Ubuntu 18.04

To uninstall only the libreoffice-base-drivers package we can use the following command:

sudo apt-get remove libreoffice-base-drivers

Uninstall libreoffice-base-drivers And Its Dependencies

To uninstall libreoffice-base-drivers and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libreoffice-base-drivers

Remove libreoffice-base-drivers Configurations and Data

To remove libreoffice-base-drivers configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libreoffice-base-drivers

Remove libreoffice-base-drivers configuration, data, and all of its dependencies

We can use the following command to remove libreoffice-base-drivers configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libreoffice-base-drivers

References

Summary

In this tutorial we learn how to install libreoffice-base-drivers package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.