Updating CentOS 9.6 to CentOS 10.0
From Observer GigaFlow Support | VIAVI Solutions Inc.
yum -y install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm
yum -y install postgresql10 yum -y install postgresql10-server yum -y install postgresql10-contrib /usr/pgsql-10/bin/postgresql-10-setup initdb cd /var/lib/pgsql/10 rsync -av data/ /db/pgsql/data10/ mv data dataorig ln -s /db/pgsql/data10 data chown postgres data service postgresql-9.6 stop rm /var/lib/pgsql/9.6/data /usr/pgsql-10/bin/pg_upgrade -b /usr/pgsql-9.6/bin/ -B /usr/pgsql-10/bin/ -d /db/pgsql/data96/ -D /db/pgsql/data10/ -k systemctl enable postgresql-10 systemctl start postgresql-10 yum erase postgresql96-server