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
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.
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.
in this case, delete the package postgresql-python-8.1.11.e
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