centos7 升级openssl1.1.1i(rpmbuild打包后rpm方式升级)
此文档提供方法为官方源码build成rpm后,用rpm进行升级,在Centos7.5.1804下实现,其他环境未经测试(南网数据库环境为7.5.1804)。 1, #下面内容可拷贝成脚本执行 #!/bin/bash set -e set -v mkdir ~/openssl && cd ~/openssl yum -y install \ curl \ which \ make \ gcc \ perl \ perl-WWW-Curl \ rpm-build # Get openssl tarball cp /root/openssl-1.1.1i.tar.gz ./ # SPEC file cat << 'EOF' > ~/openssl/openssl.spec Summary: OpenSSL 1.1.1i for Centos Name: openssl Version: %{?version}%{!?version:1.1.1i} Release: 1%{?dist} Obsoletes: %{name} <= %{version} Provides: %{name} = %{version} URL: https://www.openssl.org/ License: GPLv2+ Source: https://www.openssl.org/source/%