Skip to content

Instantly share code, notes, and snippets.

@thesuhu
Created December 16, 2021 12:11
Show Gist options
  • Save thesuhu/f35bb183a48a8b195ad61cb27513d204 to your computer and use it in GitHub Desktop.
Save thesuhu/f35bb183a48a8b195ad61cb27513d204 to your computer and use it in GitHub Desktop.
Build and Install cURL on CentOS
#! /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