Liquibase Installation on Ubuntu 24
Introduction
Liquibase is an open-source database change management tool used to track, version, and deploy database schema changes in a structured and controlled way.
It is commonly used in DevOps pipelines and CI/CD workflows (Jenkins, GitLab, ArgoCD) to ensure database consistency across development, testing, and production environments.
Prerequisites
Before installing Liquibase, ensure the system meets the following requirements:
- Ubuntu 22.04 / 24.04 LTS
- Java 11 or higher installed
- Internet access for downloading packages
- Utilities: wget and unzip
If required, these tools can be installed using apt.
Installation Steps
Step 1: Update system packages
sudo apt update
Step 2: Install Java
sudo apt install -y default-jre
Step 3: Verify Java installation
java -version
Expected output: Java 11 or higher.
Step 4: Navigate to /opt directory
cd /opt
Step 5: Download Liquibase
sudo wget https://github.com/liquibase/liquibase/releases/download/v4.29.2/liquibase-4.29.2.zip
Step 6: Extract the package
sudo unzip liquibase-4.29.2.zip
Step 7: Verify Liquibase installation
/opt/liquibase --version
Expected output: Liquibase Version 4.29.2
Optional Step: Add Liquibase to PATH
echo 'export PATH=$PATH:/opt' >> ~/.bashrc source ~/.bashrc
Verify:
liquibase --version
Conclusion
Liquibase has been successfully installed on Ubuntu 24 along with Java prerequisites.
The system is now ready for database version control and migration management.
Next steps typically include:
- Configuring database connection using liquibase.properties
- Creating and running the first migration script
- Integrating Liquibase with CI/CD pipelines such as Jenkins or GitLab
