Install Liquibase on Linux with Debian/Ubuntu

You can install, upgrade, and uninstall Liquibase on your Linux machine with the Debian/Ubuntu package installer by following the steps on this page.

Install

To install Liquibase using the Debian/Ubuntu installer package, follow the steps below:

  1. Open a terminal.
  2. Run the following command to import the Liquibase GPG key and add the Liquibase repository to the apt sources list:
  3. wget -O- https://repo.liquibase.com/liquibase.asc | gpg --dearmor > liquibase-keyring.gpg && \
    cat liquibase-keyring.gpg | sudo tee /usr/share/keyrings/liquibase-keyring.gpg > /dev/null && \
    echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/liquibase-keyring.gpg] https://repo.liquibase.com stable main' | sudo tee /etc/apt/sources.list.d/liquibase.list
  4. Update the package lists:
  5. sudo apt-get update
  6. Install Liquibase:
  7. sudo apt-get install liquibase

Liquibase is now installed on your system.

Optional: install a specific version

To install a specific version of Liquibase using the Debian/Ubuntu installer package, you can use the package manager's version pinning mechanism. Run the following command and replace x.y.z with the desired version number:

sudo apt-get install liquibase= x.y.z

The specified version of Liquibase is now installed on your system.

Upgrade

To upgrade Liquibase to the latest version, follow these steps:

  1. Open a terminal.
  2. Update the package lists:
  3. sudo apt-get update
  4. Upgrade Liquibase:
  5. sudo apt-get upgrade liquibase

Liquibase has now been upgraded to the latest version available in the repository.

Uninstall

To uninstall Liquibase from your system, follow these steps:

  1. Open a terminal.
  2. Remove the Liquibase package:
  3. sudo apt-get remove liquibase

Liquibase is now uninstalled from your system.

Next steps

  1. Introduction to Liquibase – Dive into Liquibase concepts
  2. Get Started with Liquibase – Learn how to use Liquibase with an example database
  3. Design Your Liquibase Project – Create a new Liquibase project folder and organize your changelogs
  4. Liquibase Database Tutorials – Configure Liquibase to work with your own database
  5. How to Apply Your Liquibase Pro License Key – If you use Liquibase Pro, activate your license