Perform a major upgrade using installer for CentOS

This document explains how to perform a major upgrade for an existing remote agent using the installer for CentOs 7.9 or later.

To install an agent on a fresh deployment, refer to Create an agent with installer on CentOS.

The major upgrade consists of three procedures:

  • Install Linux packages
  • Install OpenSSL 3.0.7
  • Recompile Python 3.7

Install Linux packages

yum install perl-core -y

OpenSSL 3.0.7 installation

Each command needs to be taken and run separately.

cd /usr/local/source
wget https://www.openssl.org/source/openssl-3.0.7.tar.gz
tar -xf openssl-3.0.7.tar.gz
cd openssl-3.0.7
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
make -j$((`nproc`+1))
make install
cd /etc/ld.so.conf.d/
echo /usr/local/ssl/lib64 > openssl-3.0.7.conf
ldconfig -v
echo PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ssl/bin" > /etc/environment
source /etc/environment
ln -sf  /usr/local/ssl/bin/openssl /usr/bin/openssl
export LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib64"
export LD_LIBRARY_PATH=/usr/local/ssl/lib64

Python 3.7.4 installation

Each command needs to be taken and run separately.

cd /usr/src
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
tar xzf Python-3.7.4.tgz
cd Python-3.7.4
./configure --prefix=/usr/local --enable-unicode=ucs4 --with-openssl=/usr/local/ssl
make
make altinstall