Skip to content

Commit 656aabf

Browse files
committed
Update the installation guide
1 parent 7e2b632 commit 656aabf

File tree

5 files changed

+96
-40
lines changed

5 files changed

+96
-40
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ All notable changes to this project will be documented in this file.
3535
- **Post-release**: Updated 4.13.0 release notes entry. ([#8923](https://github.com/wazuh/wazuh-documentation/pull/8923)) ([#8925](https://github.com/wazuh/wazuh-documentation/pull/8925)) ([#8928](https://github.com/wazuh/wazuh-documentation/pull/8928))
3636
- **Post-release**: Updated steps in Upgrade Guide for exporting customizations from the Wazuh Dashboard. ([#8921](https://github.com/wazuh/wazuh-documentation/pull/8921))
3737
- **Post-release**: Updated references to Twitter. ([#8933](https://github.com/wazuh/wazuh-documentation/pull/8933))
38+
- **Post-release**: Updated the installation guide. ([#8936](https://github.com/wazuh/wazuh-documentation/pull/8936))
3839

3940
## [v4.12.0]
4041

source/_templates/installations/wazuh/solaris/uninstall_wazuh_agent_s11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. Copyright (C) 2015, Wazuh, Inc.
22
3-
Run the following command to uninstall the Wazuh agent in Solaris 11.
3+
Uninstall Wazuh agent from Solaris 11:
44

55
.. code-block:: console
66

source/installation-guide/uninstalling-wazuh/agent.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ This section describes how to uninstall Wazuh agents installed across the differ
2020
Uninstalling a Linux Wazuh agent
2121
--------------------------------
2222

23+
Run the following commands to uninstall a Linux agent.
24+
2325
.. note::
2426

2527
To uninstall Wazuh agent from a Linux endpoint with the anti-tampering feature enabled, refer to :ref:`uninstalling_an_agent_with_anti_tampering_enabled`.
2628

27-
Run the following commands to uninstall a Linux agent.
28-
29-
3029
#. Remove the Wazuh agent installation.
3130

3231
.. tabs::
@@ -58,11 +57,11 @@ The Wazuh agent is now completely removed from your Linux endpoint.
5857
Uninstalling a Windows Wazuh agent
5958
----------------------------------
6059

61-
To uninstall the agent, the original Windows installer file is required to perform the unattended process:
60+
To uninstall the Wazuh agent, ensure the original Windows installer file is in your working directory and run the following command:
6261

63-
.. code-block:: none
62+
.. code-block:: doscon
6463
65-
msiexec.exe /x wazuh-agent-|WAZUH_CURRENT_WINDOWS|-|WAZUH_REVISION_WINDOWS|.msi /qn
64+
> msiexec.exe /x wazuh-agent-|WAZUH_CURRENT_WINDOWS|-|WAZUH_REVISION_WINDOWS|.msi /qn
6665
6766
The Wazuh agent is now completely removed from your Windows endpoint.
6867

@@ -133,9 +132,11 @@ Uninstalling an AIX Wazuh agent
133132

134133
Follow the steps below to uninstall the Wazuh agent from the AIX endpoint.
135134

136-
.. code-block:: console
135+
#. Run the following commands to uninstall an AIX agent:
136+
137+
.. code-block:: console
137138
138-
# rpm -e wazuh-agent
139+
# rpm -e wazuh-agent
139140
140141
Some files are not removed from the filesystem by the package manager. Delete the ``/var/ossec/`` folder if you want to remove all files completely.
141142

source/installation-guide/uninstalling-wazuh/central-components.rst

Lines changed: 79 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,111 +2,161 @@
22
33
.. meta::
44
:description: Learn how to uninstall each Wazuh central component.
5-
5+
66
Uninstalling the Wazuh central components
77
=========================================
88

9-
You can uninstall all the Wazuh central components using the `Wazuh installation assistant <https://packages.wazuh.com/|WAZUH_CURRENT_MINOR|/wazuh-install.sh>`_.
9+
Follow these steps to uninstall the Wazuh central components using the Wazuh installation assistant.
10+
11+
#. Download the Wazuh installation assistant:
12+
13+
.. code-block:: console
14+
15+
# curl -sO https://packages.wazuh.com/|WAZUH_CURRENT_MINOR|/wazuh-install.sh
1016
11-
Run the assistant with the option ``-u`` or ``--uninstall`` as follows:
17+
#. Run the Wazuh installation assistant with the option ``-u`` or ``--uninstall`` as follows:
1218

13-
.. code-block:: console
19+
.. code-block:: console
1420
15-
$ sudo bash wazuh-install.sh --uninstall
21+
# bash wazuh-install.sh --uninstall
1622
1723
This will remove the Wazuh indexer, the Wazuh server, and the Wazuh dashboard.
1824

19-
If you want to uninstall one specific central component, follow the instructions below.
25+
Uninstalling Wazuh components
26+
-----------------------------
27+
28+
Choose from the options below to uninstall a Wazuh component.
2029

21-
.. note::
22-
23-
You need root user privileges to run all the commands described below.
30+
.. contents::
31+
:local:
32+
:depth: 1
33+
:backlinks: none
2434

2535
.. _uninstall_dashboard:
2636

27-
Uninstall the Wazuh dashboard
28-
-----------------------------
37+
Uninstalling the Wazuh dashboard
38+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+
40+
Follow the step below to uninstall the Wazuh dashboard using your package manager.
2941

3042
#. Remove the Wazuh dashboard installation.
3143

3244
.. tabs::
3345

46+
.. group-tab:: APT
47+
48+
.. code:: console
49+
50+
# apt-get remove --purge wazuh-dashboard -y
51+
3452
.. group-tab:: Yum
3553

3654
.. code:: console
37-
55+
3856
# yum remove wazuh-dashboard -y
3957
# rm -rf /var/lib/wazuh-dashboard/
4058
# rm -rf /usr/share/wazuh-dashboard/
4159
# rm -rf /etc/wazuh-dashboard/
4260
43-
.. group-tab:: APT
61+
.. group-tab:: DNF
4462

4563
.. code:: console
4664
47-
# apt-get remove --purge wazuh-dashboard -y
65+
# dnf remove wazuh-dashboard -y
66+
# rm -rf /var/lib/wazuh-dashboard/
67+
# rm -rf /usr/share/wazuh-dashboard/
68+
# rm -rf /etc/wazuh-dashboard/
4869
4970
.. _uninstall_server:
5071

51-
Uninstall the Wazuh server
52-
--------------------------
72+
Uninstalling the Wazuh server
73+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74+
75+
Follow these steps to uninstall the Wazuh manager and filebeat using your package manager.
5376

5477
#. Remove the Wazuh manager installation.
5578

5679
.. tabs::
5780

81+
.. group-tab:: APT
82+
83+
.. code-block:: console
84+
85+
# apt-get remove --purge wazuh-manager -y
86+
5887
.. group-tab:: Yum
5988

6089
.. code-block:: console
61-
90+
6291
# yum remove wazuh-manager -y
6392
# rm -rf /var/ossec/
6493
65-
.. group-tab:: APT
94+
.. group-tab:: DNF
6695

6796
.. code-block:: console
68-
69-
# apt-get remove --purge wazuh-manager -y
97+
98+
# dnf remove wazuh-manager -y
99+
# rm -rf /var/ossec/
70100
71101
#. Remove the Filebeat installation.
72102

73103
.. tabs::
74104

105+
.. group-tab:: APT
106+
107+
.. code:: console
108+
109+
# apt-get remove --purge filebeat -y
110+
75111
.. group-tab:: Yum
76112

77113
.. code:: console
78-
114+
79115
# yum remove filebeat -y
80116
# rm -rf /var/lib/filebeat/
81117
# rm -rf /usr/share/filebeat/
82118
# rm -rf /etc/filebeat/
83119
84-
.. group-tab:: APT
120+
.. group-tab:: DNF
85121

86122
.. code:: console
87-
88-
# apt-get remove --purge filebeat -y
123+
124+
# dnf remove filebeat -y
125+
# rm -rf /var/lib/filebeat/
126+
# rm -rf /usr/share/filebeat/
127+
# rm -rf /etc/filebeat/
89128
90129
.. _uninstall_indexer:
91130

92-
Uninstall the Wazuh indexer
93-
---------------------------
131+
Uninstalling the Wazuh indexer
132+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133+
134+
Follow the step below to uninstall the Wazuh indexer using your package manager.
94135

95136
#. Remove the Wazuh indexer installation.
96137

97138
.. tabs::
98139

140+
.. group-tab:: APT
141+
142+
.. code:: console
143+
144+
# apt-get remove --purge wazuh-indexer -y
145+
99146
.. group-tab:: Yum
100147

101148
.. code:: console
102-
149+
103150
# yum remove wazuh-indexer -y
104151
# rm -rf /var/lib/wazuh-indexer/
105152
# rm -rf /usr/share/wazuh-indexer/
106153
# rm -rf /etc/wazuh-indexer/
107154
108-
.. group-tab:: APT
155+
.. group-tab:: DNF
109156

110157
.. code:: console
111158
112-
# apt-get remove --purge wazuh-indexer -y
159+
# dnf remove wazuh-indexer -y
160+
# rm -rf /var/lib/wazuh-indexer/
161+
# rm -rf /usr/share/wazuh-indexer/
162+
# rm -rf /etc/wazuh-indexer/

source/installation-guide/uninstalling-wazuh/index.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
33
.. meta::
44
:description: Learn how to uninstall Wazuh.
5-
5+
66
Uninstalling Wazuh
77
==================
88

9-
This section describes how to uninstall the Wazuh central components and agent.
9+
This section describes how to uninstall the Wazuh central components and the Wazuh agent.
10+
11+
.. note::
12+
13+
You need root user privileges to run all the commands described below.
1014

1115
.. toctree::
1216
:maxdepth: 1

0 commit comments

Comments
 (0)