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://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
To install a specific version of
yb-voyager
on your machine, use 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
Perform the following steps to install yb-voyager using yum for RHEL 9 and CentOS 9:
-
Update the yum package manager, and all the packages and repositories installed on your machine using the following command:
sudo dnf update
-
Install the
yugabyte
yum repository using the following command:sudo dnf install https://downloads.yugabyte.com/repos/reporpms/yb-yum-repo-1.1-0.noarch.rpm -y
-
Install the
epel-release
repository using the following command:sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
-
Install
mysql-community-release
repository using the following command:sudo dnf install https://dev.mysql.com/get/mysql84-community-release-el9-1.noarch.rpm -y
-
Install the PostgreSQL repositories using the following command:
sudo dnf --disablerepo=* install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm -y
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 dnf install perl-open.noarch -y
-
Install Oracle Instant Clients using the following command:
OIC_URL="https://download.oracle.com/otn_software/linux/instantclient/215000" && \ sudo dnf install -y \ ${OIC_URL}/oracle-instantclient-tools-21.5.0.0.0-1.x86_64.rpm \ ${OIC_URL}/oracle-instantclient-basic-21.5.0.0.0-1.x86_64.rpm \ ${OIC_URL}/oracle-instantclient-devel-21.5.0.0.0-1.x86_64.rpm \ ${OIC_URL}/oracle-instantclient-jdbc-21.5.0.0.0-1.x86_64.rpm \ ${OIC_URL}/oracle-instantclient-sqlplus-21.5.0.0.0-1.x86_64.rpm
-
Update the yum package manager and all the packages and repositories installed on your machine using the following command:
sudo dnf update
-
Install
yb-voyager
and its dependencies using the following command:sudo dnf install yb-voyager
To install a specific version of
yb-voyager
on your machine, use the following command:sudo dnf 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