How Do You Force the Reinstallation of curl?

Problem scenario
You are trying to remove curl with dnf or yum commands. You cannot do it because dnf or yum requires curl. What should you do to reinstall curl?

Solution
Prerequisites

You need make installed. If you need assistance with this, see this posting.

Procedures
Manually back up then delete curl. Run "which curl". Move it to a user's home directory.

Go here: https://curl.haxx.se/download/?C=M;O=D

Get a link to the .tar.gz media. Download it.

Use commands like this to expand the files and install curl:

copy the file downloaded into /opt/
tar -zxvf NameOfFileAbove.tar.gz

cd into the directory created
Run commands such as these:

./configure
make
sudo make install

Leave a comment

Your email address will not be published. Required fields are marked *