Perform the following steps to install yb_voyager using an installer script:

  1. Clone the yb-voyager repository.

    git clone https://github.com/yugabyte/yb-voyager.git
    
  2. Change the directory to yb-voyager/installer_scripts.

    cd yb-voyager/installer_scripts
    
  3. Install yb-voyager using the following script:

    ./install-yb-voyager
    

    It is safe to execute the script multiple times. If the script fails, check the /tmp/install-yb-voyager.log file.

  4. 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
    
  5. Check that yb-voyager is installed using the following command:

    yb-voyager version