Install Liquibase on Linux with Debian or Ubuntu

Last updated: July 14, 2025

Before you begin

Install Java.

Procedure

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.

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

Note: It is important to note that you must have root permissions for this to work.

3

Update the package lists.

sudo apt-get update
4

Install Liquibase.

sudo apt-get install liquibase
5

Ensure that Liquibase is updated to the desired version.

liquibase --version

Liquibase is now installed on your system.

Note: To install a specific version of Liquibase using the Debian/Ubuntu installer package, use the package manager’s version pinning mechanism: sudo apt-get install liquibase=x.y.z

Replace x.y.z with the version you want to install. This command will install that specific version of Liquibase on your system.