Install Liquibase with Red Hat or CentOS
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.
Import the Liquibase public key (as root).
rpm --import https://repo.liquibase.com/liquibase.asc
Install yum-config-manager.
yum install -y yum-utils
Add the remote repo to yum (as root).
yum-config-manager --add-repo https://package.liquibase.com/repo-liquibase-com.repo
Install Liquibase.
yum install liquibase-secure
Liquibase is now installed on your system.
Note: To install a specific version of Liquibase using the Red Hat/CentOS package manager, specify the version number like this:
yum install liquibase-x.y.z
Replace x.y.z
with the version you want to install. This will install that specific version on your system.
Apply your Liquibase Secure license key.
Using a Secrets Management tool like Hashicorp Vault or AWS Secrets Manager is best to keep Liquibase license keys secure.
There are several ways to apply the Liquibase Secure license key:
Include the Liquibase Secure license key in the Liquibase properties file and save it.
For example:
liquibase.licenseKey: aei76ou32thp785463214
Alternative to YUM/DNF - Direct RPM download
If you prefer not to configure a YUM repository, you can download the RPM package directly from Liquibase and install it manually.
OSS Package
# Replace 5.0.0 with the version you wantcurl -LO https://package.liquibase.com/downloads/oss/rpm/liquibase-5.0.0.rpmsudo rpm -ivh liquibase-5.0.0.rpm
Secure Package
# Replace 5.0.0 with the version you wantcurl -LO https://package.liquibase.com/downloads/secure/rpm/liquibase-secure-5.0.0.rpmsudo rpm -ivh liquibase-secure-5.0.0.rpm
Notes
curl -LO
saves the file with the correct filename.Use
rpm -Uvh
instead of-ivh
if you are upgrading an existing installation.Direct RPM download is useful for air-gapped installs or if you don’t want to set up the YUM repo.