Uninstall Self-Extracting Java Installer and Apache service in RHEL
Sometimes we installed self-extracted packages to run specific
packages. In this post we discussed how to Uninstall Self-Extracting Java
Installer and Apache service in RHEL.
Also follow our other topics Remove
RPM-package/Disable YUM Repository – RHEL and CentOS.
Uninstall Self-Extracting Apache service (Remove apache service
permanently)
Step 1: Stop the service
# service apache stop
Step 2: To disable service for run level
# chkconfig apache off
# chkconfig --list apache
Or you may delete the apache24 directory to stop apache service
# rm -rf /usr/local/apache24
Note: Apache service is extracted in /usr/local/apache24 location.
Uninstall Self-Extracting Java Installer (Remove Java service
permanently):
Method-1: You can rename the java directory
Step 1: Find installed Java version
# java -version
java version "1.8.0_202-ea"
Java(TM) SE Runtime Environment (build 1.8.0_202-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b03, mixed mode)
Step 2: Locate installation directory
# which java
/usr/local/jdk8/bin/java
Step 3: Find which Java version package installed.
# rpm -qa | grep java*
dejavu-fonts-common-2.33-6.el7.noarch
dejavu-sans-fonts-2.33-6.el7.noarch
Note: No installed rpm package for Jave found.
# rpm -qa | grep jdk*
Note: No installed rpm package for Jdk found.
Step 5: Rename jdk directory to stop java service
# mv /usr/local/jdk8/ /usr/local/jdk8_org
Step 6: Check to conform java service stopped
# java -version
Method-2: Remove the java directory permanently to stop java service
# rm -rf /usr/local/jdk8
Comments
Post a Comment