Created
December 16, 2021 12:11
-
-
Save thesuhu/f35bb183a48a8b195ad61cb27513d204 to your computer and use it in GitHub Desktop.
Build and Install cURL on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Tested on CentOS 7 and CentOS 8 | |
# Check the latest version at https://curl.se/download/ | |
VERSION=7.80.0 | |
cd ~ | |
sudo yum update -y | |
sudo yum install wget gcc openssl-devel make -y | |
wget https://curl.haxx.se/download/curl-${VERSION}.tar.gz | |
tar -xzvf curl-${VERSION}.tar.gz | |
rm -f curl-${VERSION}.tar.gz | |
cd curl-${VERSION} | |
./configure --prefix=/usr/local --with-ssl | |
make | |
sudo make install | |
sudo ldconfig | |
cd ~ | |
rm -rf curl-${VERSION} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment