Introduction

 

This article will walk you through replacing a libcurl package that was installed from another provider

 

Procedure

 

We will first need to ensure the third-party provider repo has been disabled

 

yum-config-manager --disable $repo-name-here

 

Example:

 

yum-config-manager --disable city-fans

 

Next, we need to remove the libcurl package from the third-party provider:

 

rpm -ev --nodeps --justdb libcurl

 

Example:

 

[root@hostname ~]# rpm -ev --nodeps --justdb libcurl
Preparing packages...

 

Finally, we need to install libcurl again:

 

yum install libcurl

 

Example:

 

[root@hostname /]# yum install libcurl
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 184.94.196.94
* cpanel-addons-production-feed: 184.94.196.94
* cpanel-plugins: 184.94.196.94
* base: centos2.cpanel.net
* epel: pubmirror1.math.uh.edu
* extras: centos2.cpanel.net
* updates: centos2.cpanel.net
Resolving Dependencies
--> Running transaction check
---> Package libcurl.x86_64 0:7.29.0-59.el7_9.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Installing:
libcurl x86_64 7.29.0-59.el7_9.1 updates 223 k

Transaction Summary
=====================================================================================================================================
Install 1 Package

Total download size: 223 k
Installed size: 429 k
Is this ok [y/d/N]: y
Downloading packages:
libcurl-7.29.0-59.el7_9.1.x86_64.rpm | 223 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libcurl-7.29.0-59.el7_9.1.x86_64 1/1
Verifying : libcurl-7.29.0-59.el7_9.1.x86_64 1/1

Installed:
libcurl.x86_64 0:7.29.0-59.el7_9.1

Complete!