因為遇到神奇的錯誤訊息, 所以要來安裝 OpenSSL 在 Rocky Linux 8 上.
先到OpenSSL download page:
https://www.openssl.org/source/
取得最新的下載連結, 附註, 不要下載 1.1.1系列的了, 很多程式都要已經要求要使用 3.0.0 版以上.
Linux下指令:
cd /usr/local/src/
sudo wget https://www.openssl.org/source/openssl-3.0.8.tar.gz
sudo tar -xzvf openssl-3.0.8.tar.gz
cd openssl-3.0.8
./config –prefix=/usr/local/ssl –openssldir=/usr/local/ssl shared zlib
資料來源:
https://www.hostnextra.com/kb/install-openssl-1-1-1k-on-rocky-linux-8/
Install openssl on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
Copy
After updating yum database, We can install openssl
using dnf
by running the following command:
sudo dnf -y install openssl
Copy
Install openssl on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
Copy
After updating yum database, We can install openssl
using yum
by running the following command:
sudo yum -y install openssl
Copy
How To Uninstall openssl on Rocky Linux 8
To uninstall only the openssl
package we can use the following command:
sudo dnf remove openssl