Perform the following steps to install yb-voyager using yum for RHEL 8 and CentOS 8:
-
Update the yum package manager, and all the packages and repositories installed on your machine using the following command:
sudo yum update
-
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
. -
Install the
epel-release
repository using the following command:sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
-
Install the Oracle instant client repositories using the following command:
sudo yum install oracle-instant-clients-repo
-
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
. -
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
-
Update the yum package manager and all the packages and repositories installed on your machine using the following command:
sudo yum update
-
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>
-
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