Avatar of missymadi
missymadi
 asked on

How do I Remove Postgre 8.1.11 with dependancies?

Hi Experts,

       I am trying to remove Postgre 8.1.11 but I'm getting the following failed dependancies:
libpq.so is needed by (installed) postgresql-python-8.1.11.el5_1.1.i38

How do I get past this error?

Thanks, Missymadi
PostgreSQL

Avatar of undefined
Last Comment
Hatrix76

8/22/2022 - Mon
Hatrix76

delete all depending packages first:

in this case, delete the package postgresql-python-8.1.11.el5_1.1.i38 before deleting postgres.

I am not 100% sure if there is an more efficient way in cent-os, but at least you can delete all your packages, just make sure to delete the dependencies first.

best
missymadi

ASKER
Will deleting PostgreSQL 8.1.22 package and dependacies cause issues for an updated version of PostgreSQL and its dependancies? This is my goal to have a clean RHEL OS and have the latest version of PostgreSQL 9.0 installed.

Thanks, Missymadi
Hatrix76

No, you won't have any issues. These are packages that depend on postgresql 8.1, which have nothing to do with the 9.1 version.

best
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
missymadi

ASKER
I just tried to remove the dependancy
rm libpq.so.4

error - no such file or directory.
How do I delete dependancies?
Hatrix76

a dependency is also a rpm package.

you have to remove the installed packages. If you have yum installed you can use it to remove all packages including the dependency packages:
yum remove <package name>

I do not know how the package name of postgresql is exactly in redhat, but you can find out by:

rpm -qa | grep -i postgres

this should list all installed packages regarding postgres, you can remove them also with:

rpm -e <packagename1> <packagename2> ... from the list of packages you received from rpm -qa.


best
Ray
missymadi

ASKER
bash grep -i not found error.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
missymadi

ASKER
Strange - I entered
rpm -e libpq.so.4   and recieved the following error:
error: Package libpq.so.4 is not installed.
ASKER CERTIFIED SOLUTION
Hatrix76

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.