# Updating OctoXLabs

### Step 1: Stop All Services﻿ <a href="#step-1-stop-all-services" id="step-1-stop-all-services"></a>

Before updating the OctoX platform, you must turn off all services. Use the following commands:

```
octox-ctl -x down
```

### Step 2: Run the Update Package﻿ <a href="#step-2-run-the-update-package" id="step-2-run-the-update-package"></a>

Ubuntu or Debian

```
$ dpkg -i octoxlabs_***.deb
```

Redhat or CentOS

```
$ rpm -i --force octoxlabs_***.rpm
```

{% hint style="info" %}
In the file name, which is in the form of octoxlabs\_\*\**, the full file name must be placed where there is an asterisk (*). For example, octoxlabs\_stable\_4.0.0\_amd64\_202402020623\_update.rpm.
{% endhint %}

### Step 3: Start All Services﻿ <a href="#step-3-start-all-services" id="step-3-start-all-services"></a>

```
octox-ctl -x up
```

At the end of this process, the OctoXLabs update will be completed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.octoxlabs.com/setting-up-octoxlabs/updating-octoxlabs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
