Install Liquibase on Linux with Debian or Ubuntu
Last updated: September 2, 2025
Before you begin
Confirm that Java is installed. If you use the Liquibase Installer, Java is included automatically.
Procedure
Open a terminal.
Update Liquibase APT Source to package.liquibase.com
If you’ve installed Liquibase previously and your system is still pointing at repo.liquibase.com, run the following commands to update your configuration to use the new package.liquibase.com domain (which provides improved tracking and reliability):
#Backup old source list (optional but recommended)
sudo cp /etc/apt/sources.list.d/liquibase.list /etc/apt/sources.list.d/liquibase.list.bak
#Replace repo.liquibase.com with package.liquibase.com
sudo sed -i 's|repo.liquibase.com|package.liquibase.com|g' /etc/apt/sources.list.d/liquibase.list
#Update package lists
sudo apt-get update
This backs up your old file to liquibase.list.bak and updates the .list file in place so it now contains:
deb [arch=amd64 signed-by=/usr/share/keyrings/liquibase-keyring.gpg] https://package.liquibase.com stable mainRun 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://package.liquibase.com stable main' | \
sudo tee /etc/apt/sources.list.d/liquibase.listNote: It is important to note that you must have root permissions for this to work.
Update the package lists.
sudo apt-get updateInstall Liquibase.
sudo apt-get install liquibaseapt-get commands don’t require you to add anything to your path. This adds to your /bin by default.
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.