// tag::deb[]

include::install.asciidoc[tag=install-tip]

[source,shell]
----
sudo systemctl enable elastic-agent <1>
sudo systemctl start elastic-agent
----
<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`.

// end::deb[]

// tag::rpm[]

include::install.asciidoc[tag=install-tip]

[source,shell]
----
sudo systemctl enable elastic-agent <1>
sudo systemctl start elastic-agent
----
<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`.

// end::rpm[]

// tag::mac[]

include::install.asciidoc[tag=install-tip]

[source,shell]
----
sudo ./elastic-agent install
----

// end::mac[]

// tag::linux[]

include::install.asciidoc[tag=install-tip]

[source,shell]
----
sudo ./elastic-agent install
----

// end::linux[]

// tag::win[]
Open a PowerShell prompt as an Administrator (right-click the PowerShell icon
and select **Run As Administrator**).

From the PowerShell prompt, change to the directory where you installed {agent},
and run:

[source,shell]
----
.\elastic-agent.exe install
----

// end::win[]
