Skip to content

Commit beffd81

Browse files
committed
Add additional steps for DEB and RPM
1 parent 02d10fd commit beffd81

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

reference/fleet/install-standalone-elastic-agent.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ To install and run {{agent}} standalone:
6464
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{{stack-version}}-amd64.deb
6565
sudo dpkg -i elastic-agent-{{stack-version}}-amd64.deb
6666
```
67+
68+
By default the {{agent}} basic flavor is installed. To install the servers flavor add the `ELASTIC_AGENT_FLAVOR=servers` parameter. Refer to [{{agent}} installation flavors](./install-elastic-agents.md#elastic-agent-installation-flavors) for details about the different flavors.
69+
70+
You can use either of the two command formats to set the `ELASTIC_AGENT_FLAVOR` environment variable:
71+
72+
```shell subs=true
73+
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{{stack-version}}-amd64.deb
74+
sudo ELASTIC_AGENT_FLAVOR=servers dpkg -i elastic-agent-{{stack-version}}-amd64.deb
75+
```
76+
77+
```shell subs=true
78+
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{{stack-version}}-amd64.deb
79+
ELASTIC_AGENT_FLAVOR=servers sudo -E dpkg -i elastic-agent-{{stack-version}}-amd64.deb
80+
```
81+
82+
::::{note}
83+
If you need to uninstall an {{agent}} package on Debian Linux, note that the `dpkg -r` command to remove a package leaves the flavor file in place. Instead, `dpkg -P` must to be used to purge all package content and reset the flavor.
84+
::::
85+
6786
:::
6887

6988
:::{tab-item} RPM
@@ -77,6 +96,21 @@ To install and run {{agent}} standalone:
7796
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{{stack-version}}-x86_64.rpm
7897
sudo rpm -vi elastic-agent-{{stack-version}}-x86_64.rpm
7998
```
99+
100+
By default the {{agent}} basic flavor is installed. To install the servers flavor add the `ELASTIC_AGENT_FLAVOR=servers` parameter. Refer to [{{agent}} installation flavors](./install-elastic-agents.md#elastic-agent-installation-flavors) for details about the different flavors.
101+
102+
You can use either of the two command formats to set the `ELASTIC_AGENT_FLAVOR` environment variable:
103+
104+
```shell subs=true
105+
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{{stack-version}}-amd64.deb
106+
sudo ELASTIC_AGENT_FLAVOR=servers rpm -vi elastic-agent-{{stack-version}}-x86_64.rpm
107+
```
108+
109+
```shell subs=true
110+
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{{stack-version}}-amd64.deb
111+
ELASTIC_AGENT_FLAVOR=servers sudo -E rpm -vi elastic-agent-{{stack-version}}-x86_64.rpm
112+
```
113+
80114
:::
81115

82116
::::
@@ -166,8 +200,6 @@ To install and run {{agent}} standalone:
166200

167201
1. The DEB package includes a service unit for Linux systems with systemd. On these systems, you can manage {{agent}} by using the usual systemd commands. If you don’t have systemd, run `sudo service elastic-agent start`.
168202

169-
By default the {{agent}} basic flavor is installed. To install the servers flavor add the `ELASTIC_AGENT_FLAVOR=servers` parameter to both commands. Refer to [{{agent}} installation flavors](./install-elastic-agents.md#elastic-agent-installation-flavors) for details.
170-
171203
::::
172204

173205
::::{tab-item} RPM
@@ -179,8 +211,6 @@ To install and run {{agent}} standalone:
179211

180212
1. The RPM package includes a service unit for Linux systems with systemd. On these systems, you can manage {{agent}} by using the usual systemd commands. If you don’t have systemd, run `sudo service elastic-agent start`.
181213

182-
By default the {{agent}} basic flavor is installed. To install the servers flavor add the `ELASTIC_AGENT_FLAVOR=servers` parameter to both commands. Refer to [{{agent}} installation flavors](./install-elastic-agents.md#elastic-agent-installation-flavors) for details.
183-
184214
::::
185215

186216
:::::

0 commit comments

Comments
 (0)