Perform the following steps to install yb-voyager using yum for RHEL 7/8 and CentOS 7/8:

  1. Update the yum package manager, and all the packages and repositories installed on your machine using the following command:

    sudo yum update
    
  2. Install the yugabyte yum repository using the following command:

    sudo yum install https://s3.us-west-2.amazonaws.com/downloads.yugabyte.com/repos/reporpms/yb-yum-repo-1.1-0.noarch.rpm
    

    This repository contains the yb-voyager rpm and other dependencies required to run yb-voyager.

  3. Install the epel-release repository using the following command:

    # For RHEL 7 or CentOS 7
    sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    
    # For RHEL 8 or Centos 8
    sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
    
  4. Install the Oracle instant client repositories using the following command:

    sudo yum install oracle-instant-clients-repo
    
  5. Install the PostgreSQL repositories using the following command:

    # For RHEL 7
    sudo yum --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    
    # For RHEL 8
    sudo yum --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    

    These repositories contain the rest of the dependencies required to run yb-voyager.

    Note that if you're using RHEL 8 or CentOS 8, perform the following two steps before proceeding to step 6.

    • Disable the default PostgreSQL yum module on your machine using the following command:

      sudo dnf -qy module disable postgresql
      
    • Install perl-open on your machine using the following command:

      sudo yum install perl-open.noarch
      
  6. Update the yum package manager and all the packages and repositories installed on your machine using the following command:

    sudo yum update
    
  7. Install yb-voyager and its dependencies using the following command:

    sudo yum install yb-voyager
    

    Install a specific version of yb-voyager on your machine using the following command:

    sudo yum install yb-voyager-<VERSION>
    
  8. Check that yb-voyager is installed using the following command:

    yb-voyager version