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
missymadiAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Hatrix76Connect With a Mentor Commented:
you can not delete libpq.so.4, libpq.so.4 is an actual file, which is installed with a package.

try:

rpm -qa

this should give you a list of all installed packages.

then try:

rpm -qa | grep postgre

I do not understand why grep -i should not work on your system, but lets do basics.

rpm -qf /usr/lib/libpq.so.4

this should tell you the name of the package which contains the libpq.so.4 file.


a very good introduction into RPM is here:
http://www.tfug.org/helpdesk/linux/rpm.html

but do not remove the package like:
rpm -e --nodeps <package_name>

because this will leave the dependency packages on your system and this can cause problems in the future!

best
ray
0
 
Hatrix76Commented:
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
0
 
missymadiAuthor Commented:
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
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Hatrix76Commented:
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
0
 
missymadiAuthor Commented:
I just tried to remove the dependancy
rm libpq.so.4

error - no such file or directory.
How do I delete dependancies?
0
 
Hatrix76Commented:
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
0
 
missymadiAuthor Commented:
bash grep -i not found error.
0
 
missymadiAuthor Commented:
Strange - I entered
rpm -e libpq.so.4   and recieved the following error:
error: Package libpq.so.4 is not installed.
0
All Courses

From novice to tech pro — start learning today.