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
- Install Java.
Install
To install Liquibase using the Red Hat/CentOS package manager, follow the steps below:
- Open a terminal.
- Import the Liquibase public key (as root):
- Install
yum-config-manager
: - Add the remote repo to yum (as root):
- Install Liquibase:
rpm --import https://repo.liquibase.com/liquibase.asc
yum install -y yum-utils
yum-config-manager --add-repo https://repo.liquibase.com/repo-liquibase-com.repo
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:
- Open a terminal.
- Update to the latest version:
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:
- Open a terminal.
- Downgrade to the previous version:
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:
- Open a terminal.
- Remove the Liquibase package:
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
- Introduction to Liquibase – Dive into Liquibase concepts
- Get Started with Liquibase – Learn how to use Liquibase with an example database
- Design Your Liquibase Project – Create a new Liquibase project folder and organize your changelogs
- Liquibase Database Tutorials – Configure Liquibase to work with your own database
- How to Apply Your Liquibase Pro License Key – If you use Liquibase Pro, activate your license