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
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.