Skip to content

Commit d080f46

Browse files
Copilotbmorelli25
andcommitted
Add Linux, Windows, DEB, and RPM standalone agent upgrade commands
Co-authored-by: bmorelli25 <[email protected]>
1 parent 07d59ad commit d080f46

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

reference/fleet/upgrade-standalone.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,59 @@ To upgrade a standalone agent running on an edge node:
1313
1. Make sure the `elastic-agent` service is running.
1414
2. From the directory where {{agent}} is installed, run the `upgrade` command to upgrade to a new version. Not sure where the agent is installed? Refer to [Installation layout](/reference/fleet/installation-layout.md).
1515

16-
For example, on macOS, to upgrade the agent from version 8.8.0 to 8.8.1, you would run:
16+
For example, to upgrade the agent from version 8.8.0 to 8.8.1, you would run:
17+
18+
:::::{tab-set}
19+
20+
::::{tab-item} macOS
1721

1822
```shell
1923
cd /Library/Elastic/Agent/
2024
sudo elastic-agent upgrade 8.8.1
2125
```
2226

27+
::::
28+
29+
::::{tab-item} Linux
30+
31+
```shell
32+
cd /opt/Elastic/Agent/
33+
sudo elastic-agent upgrade 8.8.1
34+
```
35+
36+
::::
37+
38+
::::{tab-item} Windows
39+
40+
Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select **Run As Administrator**).
41+
42+
From the PowerShell prompt, change to the directory where you installed {{agent}}, and run:
43+
44+
```shell
45+
cd "C:\Program Files\Elastic\Agent"
46+
.\elastic-agent.exe upgrade 8.8.1
47+
```
48+
49+
::::
50+
51+
::::{tab-item} DEB
52+
53+
```shell
54+
sudo elastic-agent upgrade 8.8.1
55+
```
56+
57+
::::
58+
59+
::::{tab-item} RPM
60+
61+
```shell
62+
sudo elastic-agent upgrade 8.8.1
63+
```
64+
65+
::::
66+
67+
:::::
68+
2369

2470
This command upgrades the binary. Your agent policy should continue to work, but you might need to upgrade it to use new features and capabilities.
2571

0 commit comments

Comments
 (0)