Perform the following steps to install yb-voyager using yum for RHEL 8 and CentOS 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:

    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:

    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.

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

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

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

    sudo yum update
    
  9. 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>
    
  10. Check that yb-voyager is installed using the following command:

    yb-voyager version
    

Upgrade yb-voyager

Upgrade yb-voyager using the following command:

sudo yum update yb-voyager