Once you have downloaded the Liquibase-Version#-bin.tar.gz file, create a local directory on your computer (Example:
/usr/apps/Liquibase-<version>-bin), then add the directory to your PATH.
To add the directory to your PATH:
This command will not permanently update your PATH after the termination of your session. To update your PATH permanently, run the following command:
source ~/.profile or source ~/.bashrc
Then restart your command line.
Note for MacOS users only: There is a more convenient way to set path using Terminal in Default mode.
To set path you can run:
sudo nano /etc/pathsthen append the path
/path/to/Liquibase-<version>-binat the end of the file. Hit
yfor yes, to save the file and restart your Terminal. View the Downloading & Installing Liquibase on MacOS video for more information.
Verification is an essential aspect of the Liquibase installation process, and there are three things you need to check:
To verify that you have correctly added the Liquibase folder to your PATHs, type
env in your Terminal or Linux command to display all your available PATHs.
For Liquibase to run correctly, Java must be installed on your Linux/Mac/Unix machine. To verify that Java is installed on your computer:
If you see the error:
-bash: java: command not found, then you need to either install Java, or you need to add the location of the Java executable to your PATH.
To install Java on your computer
Another way to verify that you installed Liquibase correctly on your computer is to run the Liquibase Help Command. To run the command: