SOLVED Uninstall PostgreSQL

Operating System & Version
Centos 7.9
cPanel & WHM Version
96.0.9

liebn0r

Active Member
Dec 7, 2017
41
2
8
USA
cPanel Access Level
Website Owner
Is there any way to uninstall PostgreSQL after it's been installed with the /usr/local/cpanel/scripts/installpostgres script?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,027
313
cPanel Access Level
Root Administrator
Hey there! We've got some details here that are still accurate:


Can you try that and let me know if that doesn't work how you expect?
 

liebn0r

Active Member
Dec 7, 2017
41
2
8
USA
cPanel Access Level
Website Owner
Following the instructions in that thread, I am left with the following packages:

# yum list installed | grep postgres
cpanel-postgresql.x86_64 9.2.24-1.cp1186 installed
cpanel-postgresql-libs.x86_64 9.2.24-1.cp1186 installed
postgresql-libs.x86_64 9.2.24-6.el7_9 @updates

Is it safe to also remove the above packages?
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
52
103
Houston
cPanel Access Level
Root Administrator
Hey there liebn0r! It should be safe to remove postgresql-libs, but we do not recommend removing the cPanel provided RPMs. You should be able to remove the PostgreSQL RPM using the following commands:

Code:
yum remove postgresql
rpm -e --nodeps postgresql-libs-9.2.23-3.el7_4.x86_64
Let us know if this helps!
 

liebn0r

Active Member
Dec 7, 2017
41
2
8
USA
cPanel Access Level
Website Owner
I had to update the command to the following but thanks for the guidance on the cPanel RPMs:

rpm -e --nodeps postgresql-libs-9.2.24-6.el7_9.x86_64
 
  • Like
Reactions: cPRex