Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Code Block
yum remove elasticsearch

To remove related directories run the following commands:

Code Block
rm -rf /usr/share/elasticsearch
rm -rf /var/lib/elasticsearch

Uninstalling MySQL

Note

Assumption: The mysqld service has already been stopped as per previous instructions above.

Remove the MySQL community packages with the following command:


Code Block
yum remove $(rpm -qa|grep mysql)

To remove the related directories:

Code Block
rm -rf /usr/share/mysql
rm -rf /var/lib/mysql

To remove the MySQL system user and its home directory and group:

Code Block
userdel -r mysql


Uninstalling Nginx

Note

Assumption: The Nginx service has already been stopped as per previous instructions above.

Remove the nginx and supporting packages with the following command:


Code Block
yum remove nginx

To remove related directories:

Code Block
rm -rf /etc/nginx
rm -rf /usr/lib64/nginx
rm -rf /usr/share/nginx
rm -rf /var/log/nginx
rm -rf /var/lib/nginx

To remove the Nginx system user and its home directory and group:

Code Block
userdel -r nginx


Uninstalling RabbitMQ

Note

Assumption: RabbitMQ server service has already been stopped as per previous instructions above.

Remove the rabbitmq-server package with the following command:


Code Block
yum remove rabbitmq-server

To remove related directories:

Code Block
rm -rf /etc/rabbitmq
rm -rf /usr/lib/ocf/resource.d/rabbitmq
rm -rf /var/log/rabbitmq
rm -rf /var/lib/rabbitmq

To stop the erlang epmd daemon:

Code Block
epmd -kill
Info

Please note: The above command may not be necessary on EL7 installs.

To remove the RabbitMQ system user and its home directory and group:

Code Block
userdel -r rabbitmq

Uninstall Remaining Packages and Remove Yum Repositories

Optionally, follow these steps to remove the remaining packages that are typically added during a Moogsoft AIOps installation and clean up the Yum repositories:

Remove remaining packages:


Warning

Important: Note that the below list of packages is based on reverting back to a "minimal" installation of CentOS 6.9 and will vary with different versions of Linux and installation level.

Care should be taken not to remove packages that impact other important applications that may be installed on the server.

Review carefully the yum summary before proceeding with the removal - specifically any other packages listed in the "Removing for dependencies:" output.

In the list of removal packages below, the libX* and perl* packages may typically impact other applications.


To remove the remaining packages, run these commands:
Code Block
yum remove GeoIP GeoIP-GeoLite-data GeoIP-GeoLite-data-extra \
apr compat-readline5 erlang fontconfig freetype gd geoipupdate jdk1.8.0_121 \
libX11 libX11-common libXau libXpm libgfortran libjpeg-turbo libkqueue libpng libxcb libxslt \
nginx-filesystem \
perl perl-DBI perl-Module-Pluggable perl-Pod-Escapes perl-Pod-Simple perl-libs perl-version \
socat tomcat-native


Remove Yum Repositories:

Remove EPEL Yum Repository:


Code Block
yum remove epel-release
rm -f /etc/yum.repos.d/epel*
Remove MySQL Community Yum Repository:


Code Block
yum remove mysql-community-release
rm -f /etc/yum.repos.d/mysql*

Remove remaining Yum Repositories:

Code Block
rm -f /etc/yum.repos.d/elasticsearch.repo
rm -f /etc/yum.repos.d/moog.repo
rm -f /etc/yum.repos.d/rabbitmq_rabbitmq-server.repo

yum remove $(rpm -qa|grep mysql)