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.
Agent 2.0.0
This major upgrade to remote agents with version 2.0.0 and higher consists of five procedures:
- Install Linux packages
- Install OpenSSL 3.0.7
- OpenSSL 3.0.7 environment variables configuration
- Install Python 3.11
- Install Python 3.11 pip
Install Linux packages
yum install perl-core -y
Install OpenSSL 3.0.7
Each command needs to be taken and run separately.
cd /usr/local/src 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
Configure OpenSSL environment variables
Each command needs to be taken and run separately.
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
Install Python 3.11
Each command needs to be taken and run separately.
cd /usr/src wget http://www.python.org/ftp/python/3.11.8/Python-3.11.8.tgz tar xzf Python-3.11.8.tgz cd Python-3.11.8 make clean ./configure --prefix=/usr/local --enable-unicode=ucs4 --with-openssl=/usr/local/ssl make make altinstall
Install Python 3.11 pip
Each command needs to be taken and run separately.
wget -O get-pip-3.11.py https://bootstrap.pypa.io/get-pip.py /usr/local/bin/python3.11 get-pip-3.11.py /usr/local/bin/python3.11 -m pip install --upgrade pip