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.


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.

Step 4: Find which Jdk version package installed.
# 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

Also follow our other topics Remove RPM-package/Disable YUM Repository – RHEL and CentOS.

Comments

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS