OpenSSL rpm builder for CentOS 7
OpenSSL
Remove old versions
rpm -qa | grep openssl
rpm -e --justdb --nodeps <yourpackage>
OpenSSL 1.1.1n:
Build:
sudo yum -y groupinstall 'Development Tools'
git clone https://github.com/philyuchkoff/openssl-RPM-Builder
cd openssl-RPM-Builder
chmod +x install-openssl_1.1.1.sh
sudo ./install-openssl_1.1.1.sh
Builded RPM will be in
/root/rpmbuild/RPMS/x86_64/
After install-openssl_1.1.1.sh
will finish, you can install builded rpm:
sudo rpm -ivvh /root/rpmbuild/RPMS/x86_64/openssl-1.1.1n-1.el7.x86_64.rpm --nodeps
Check:
$openssl version
OpenSSL 1.1.1n 15 Mar 2022
or
$rpm -qa openssl
openssl-1.1.1n-1.el7.x86_64
OpenSSL 3:
Build:
sudo yum -y groupinstall 'Development Tools'
git clone https://github.com/philyuchkoff/openssl-RPM-Builder
cd openssl-RPM-Builder
chmod +x install-openssl_3.sh
sudo ./install-openssl_3.sh
Builded RPM will be in
/root/rpmbuild/RPMS/x86_64/