• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Remove components

W

wintech2003@

Guest
What is the safest way to remove Plesk components from a server?

eg. I want to remove Tomcat which needs the following rpms:

mod_webapp-4.1.29-40psa.rhel3.i586.rpm
psa-tomcat-configurator-7.5.2-rhel3.build75050130.17.noarch.rpm
j2sdk-1_4_2-linux-i586.rpm
regexp-1.3-1jpp.noarch.rpm
tomcat4-4.1.24-full.2jpp.noarch.rpm
tomcat4-admin-webapps-4.1.24-full.2jpp.noarch.rpm
tomcat4-webapps-4.1.24-full.2jpp.noarch.rpm
xerces-j-1.2.1-2.noarch.rpm

when I install it.

If I start removing the rpms one by one they wont be removed because depencency errors will occure.

If I write rpm -e and then on one line all rmps will this work?

How do you generally remove complete components from Plesk (so that you don't leave leftovers from other third party rpms)?

Thank you,
wintech2003

P.S. This would be a nice feature Sw-Soft could implement.. Something like Add/Remove programs :D
Like the updater but also with a remove function.
 
Hi,

Did you get tomcat uninstalled and did you have any problems?

I also would like to uninstall it.
 
Hi Melinda,

Yes tomcat got uninstalled easily.

No problems at all :)
 
There are only 2 in the opt/java folder:
mod_webapp-4.1.29-40psa.rhel3.i586.rpm
psa-tomcat-configurator-7.5.1-rhel3.build75041216.14.noarch.rpm

When I do a search for tomcat I get these:
# rpm -qa | grep tomcat
tomcat4-4.1.24-full.2jpp
tomcat4-webapps-4.1.24-full.2jpp
tomcat4-admin-webapps-4.1.24-full.2jpp
psa-tomcat-configurator-7.5.2-rhel3.build75050130.17

But this is what is in the Third_Party folder:
j2sdk-1_4_2-linux-i586.rpm
regexp-1.3-1jpp.noarch.rpm
tomcat4-4.1.24-full.2jpp.noarch.rpm
tomcat4-admin-webapps-4.1.24-full.2jpp.noarch.rpm
tomcat4-webapps-4.1.24-full.2jpp.noarch.rpm
xerces-j-1.2.1-2.noarch.rpm

So is this correct to remove these?
rpm -e tomcat4-4.1.24-full.2jpp tomcat4-webapps-4.1.24-full.2jpp tomcat4-admin-webapps-4.1.24-full.2jpp psa-tomcat-configurator-7.5.2-rhel3.build75050130.17 mod_webapp-4.1.29-40psa.rhel3.i586.rpm

Or is it with the .noarch.rpm extension on it?
rpm -e j2sdk-1_4_2-linux-i586.rpm regexp-1.3-1jpp.noarch.rpm tomcat4-4.1.24-full.2jpp.noarch.rpm tomcat4-admin-webapps-4.1.24-full.2jpp.noarch.rpm tomcat4-webapps-4.1.24-full.2jpp.noarch.rpm xerces-j-1.2.1-2.noarch.rpm mod_webapp-4.1.29-40psa.rhel3.i586.rpm
psa-tomcat-configurator-7.5.1-rhel3.build75041216.14.noarch.rpm

Thanks!

I figured it out... all is uninstalled.
 
I am also new on this stuff.

How did you figure out?

Where and how do you run the command so that all packages from different directories can be part of it?

Thanks for sharing!

Sam
 
well it didnt worked for me.

[root@swordfish root]# rpm -e tomcat4-webapps-4.1.24-full.2jpp psa-tomcat-configurator-7.5.3-rhel3.build75050506.13 tomcat4-admin-webapps-4.1.24-full.2jpp tomcat4-4.1.24-full.2jpp xerces-j-2.2.1-11 jakarta-regexp-1.2-12 mod_webapp-4.1.29-41psa.rhel3 j2sdk-1.4.2-fcs
error: Failed dependencies:
lib-org-apache-regexp-1.2.so is needed by (installed) bcel-5.0-10
jakarta-regexp >= 1.2-12 is needed by (installed) bcel-5.0-10
[root@swordfish root]# rpm -e tomcat4-webapps-4.1.24-full.2jpp psa-tomcat-configurator-7.5.3-rhel3.build75050506.13 tomcat4-admin-webapps-4.1.24-full.2jpp tomcat4-4.1.24-full.2jpp xerces-j-2.2.1-11 jakarta-regexp-1.2-12 mod_webapp-4.1.29-41psa.rhel3 j2sdk-1.4.2-fcs bcel-5.0-10
===> Updating /etc/psa/psa.conf...

Trying to find JAVA_HOME variable in the /var/tomcat4/conf/tomcat4.conf...
Incorrect JAVA_HOME variable value (/usr/java/j2sdk1.4.2) in the /var/tomcat4/conf/tomcat4.conf
Trying to find Java home directory in /usr/java/jdk* /usr/java/j2sdk* /usr/local/psa/j2sdk*...
ERROR while trying to
Check the error reason(see log file: /tmp/psa_7.5.3_RedHat_el3_build75050506.13_installing.log), fix and try again

Aborting...

error: %trigger(psa-tomcat-configurator-7.5.3-rhel3.build75050506.13) scriptlet failed, exit status 1
warning: /etc/tomcat4/tomcat4.conf saved as /etc/tomcat4/tomcat4.conf.rpmsave
warning: /etc/rc.d/init.d/tomcat4 saved as /etc/rc.d/init.d/tomcat4.rpmsave

[root@swordfish root]#

on the log:

[root@swordfish root]# cat /tmp/psa_7.5.3_RedHat_el3_build75050506.13_installing.log
Trying to find JAVA_HOME variable in the /var/tomcat4/conf/tomcat4.conf...
JAVA_HOME variable is not in the /var/tomcat4/conf/tomcat4.conf
Trying to find Java home directory in /usr/java/jdk* /usr/java/j2sdk* /usr/local/psa/j2sdk*...
Trying to add JAVA_HOME="/usr/java/j2sdk1.4.2" in the /var/tomcat4/conf/tomcat4.conf... done
Trying to find JAVA_HOME variable in the /var/tomcat4/conf/tomcat4.conf...
JAVA_HOME variable is not in the /var/tomcat4/conf/tomcat4.conf
Trying to find Java home directory in /usr/java/jdk* /usr/java/j2sdk* /usr/local/psa/j2sdk*...
Trying to add JAVA_HOME="/usr/java/j2sdk1.4.2" in the /var/tomcat4/conf/tomcat4.conf... done
Trying to find JAVA_HOME variable in the /var/tomcat4/conf/tomcat4.conf...
Incorrect JAVA_HOME variable value (/usr/java/j2sdk1.4.2) in the /var/tomcat4/conf/tomcat4.conf
Trying to find Java home directory in /usr/java/jdk* /usr/java/j2sdk* /usr/local/psa/j2sdk*...
ERROR while trying to

Aborting...

[root@swordfish root]#

I want to remove it as i dont use it.. nor pretend to.

and when i create backups, then when i test them i receive warnings that tomcat was present when the dump was created.

thanks in advance,
 
Back
Top