Install Liquibase on Linux with Red Hat/CentOS

You can install, upgrade, downgrade, and uninstall Liquibase on your Linux machine with the Red Hat/CentOS package manager by following the steps on this page.

Note: Liquibase supports all versions of Linux and Unix that use a supported Java installation. Visit the Requirements page for more information.

Prerequisites

  1. Install Java.

Install

To install Liquibase using the Red Hat/CentOS package manager, follow the steps below:

  1. Open a terminal.
  2. Import the Liquibase public key (as root):
  3. rpm --import https://repo.liquibase.com/liquibase.asc
  4. Install yum-config-manager:
  5. yum install -y yum-utils
  6. Add the remote repo to yum (as root):
  7. yum-config-manager --add-repo https://repo.liquibase.com/repo-liquibase-com.repo
  8. Install Liquibase:
  9. yum install liquibase

Liquibase is now installed on your system.

Optional: installing a specific version

To install a specific version of Liquibase using the Red Hat/CentOS package manager, you can use the package manager's version specification mechanism. Run the following command and replace x.y.z with the desired version number:

yum install liquibase-x.y.z

The specified version of Liquibase will be installed on your system.

Upgrade

To upgrade Liquibase to the latest version, follow these steps:

  1. Open a terminal.
  2. Update to the latest version:
  3. yum update liquibase

Liquibase will be upgraded to the latest version available in the repository.

Downgrade

To downgrade Liquibase to a previous version, follow these steps:

  1. Open a terminal.
  2. Downgrade to the previous version:
  3. yum downgrade liquibase

Liquibase will be downgraded to the previous version available in the repository.

Uninstall

To uninstall Liquibase from your system, follow these steps:

  1. Open a terminal.
  2. Remove the Liquibase package:
  3. yum remove liquibase

Liquibase will be uninstalled from your system.

Note: If you encounter any issues or have further questions, please refer to the Liquibase documentation or seek support from the Liquibase community.

Next steps

  1. Introduction to Liquibase – Dive into Liquibase concepts
  2. Get Started with Liquibase – Learn how to use Liquibase with an example database
  3. Design Your Liquibase Project – Create a new Liquibase project folder and organize your changelogs
  4. Liquibase Database Tutorials – Configure Liquibase to work with your own database
  5. How to Apply Your Liquibase Pro License Key – If you use Liquibase Pro, activate your license