Perform the following steps to install yb_voyager
using an installer script:
-
Clone the yb-voyager repository.
git clone https://github.com/yugabyte/yb-voyager.git
-
Change the directory to
yb-voyager/installer_scripts
.cd yb-voyager/installer_scripts
-
Install yb-voyager using the following script:
./install-yb-voyager
To install a specific version of
yb-voyager
on your machine, use the following command:./install-yb-voyager --version <VERSION>
It is safe to execute the script multiple times. If the script fails, check the
/tmp/install-yb-voyager.log
file. -
The script generates a
.yb-voyager.rc
file in the home directory. Source the file to ensure that the environment variables are set using the following command:source ~/.yb-voyager.rc
-
Check that yb-voyager is installed using the following command:
yb-voyager version