Unistall an RPM -postgresql-jdbc.i386 0:8.1.407-1jpp.4

Viv

Registered
Feb 28, 2010
1
0
51
I have installed postgresql-jdbc.i386 0:8.1.407-1jpp.4 thru the Install a RPM option. This I guess is 'JDBC4 Postgresql Driver, Version 8.4-701'
But am getting 'Error = java.lang.ClassNotFoundException: org.postgresql.Driver'

This I understand is due to incompatibility of the driver flavor.
I would like to -
1. Uninstall this driver (JDBC4 Postgresql Driver, Version 8.4-701) and
2.Install 'JDBC3 Postgresql Driver, Version 8.4-701'

How can I do both these thru the WHM?

Thanks in advance!
 

m4rc3

Active Member
Mar 26, 2010
39
2
58
I'm not sure if it can be done via whm

as root via ssh it would be something like this.

to get the actual name of the rpm
Code:
rpm -qa | grep postgresql-jdbc
once you have that you can just remove it with:
Code:
rpm -e <pkg_name>
 
Last edited:

qwidjib0

Member
PartnerNOC
Aug 3, 2005
15
0
151
Chicago, Illinois
Yea, don't mess with any rpm's for this, and I think you're correct to want the JDBC3 driver instead of JDBC4 provided that you're using the Tomcat 5.5 package that comes with the current EasyApache option. This method is working great for quite a lot of servers I'm administrating with Tomcat. Here's everything you should need to make PostGres work with servlets.

cd /usr/local/jakarta/tomcat/common/lib;
wget http://jdbc.postgresql.org/download/postgresql-8.4-701.jdbc3.jar;
/scripts/restartsrv_tomcat
EDIT: vBulletin wants to snip the WGET URL above, make sure you "quote" first if you want to use those commands, or check http://jdbc.postgresql.org/download.html
 
Last edited by a moderator:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
13
313
Houston, TX
cPanel Access Level
Root Administrator
Friendly Moderator Note

I have edited the above post to remove the URL snipping.

For future reference, uncheck the following (under "Additional Options," below the "Submit Reply" button) to avoid URL snipping in commands:

Automatically parse links in text
Automatically retrieve titles from external links