> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsoar-6-installation-guides/6.13/cortex-xsoar-installation-guide/single-server-installation/install-cortex-xsoar-offline.md).

# Install Cortex XSOAR Offline

Install Cortex XSOAR 6.13 without internet access.

You need to download the required Cortex XSOAR dependencies, the Cortex XSOAR installer, license files, and Docker images from an internet-connected machine. Then transfer these files to the offline server and install the dependencies, Cortex XSOAR, and Docker images.

If you are deploying a signed installer:

* You need to import the public key into the operating system. Open a [ticket](https://support.paloaltonetworks.com/Support/Index) with Palo Alto Networks support to get the public key. It is valid for six months.
* If you are using engines or hosts in a multi-tenant environment, you need to install `makeself`.

{% hint style="info" %}

* Download the latest dependencies for your Cortex XSOAR release before installation. Dependencies can change between releases.
* The steps vary by operating system.
* Docker/Podman runs Python scripts in an isolated container.
* After installation, you need to [Add a License](/cortex-xsoar-6-installation-guides/6.13/cortex-xsoar-installation-guide/post-installation-checklist/add-a-license.md).
  {% endhint %}

### Prerequisites for installing Cortex XSOAR

Verify the following requirements before you install Cortex XSOAR:

* You have a Customer Support Portal account.

  Set up your account. For more information, see [How to Create Your CSP User Account](https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClNVCA0).

  You can configure two-factor authentication using email, Okta Verify, or Google Authenticator. For more information, see [How to Enable a Third Party IdP](https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000sZ8mCAE).
* You have the following roles:

  | Role                         | Details                                                                                                                                                     |
  | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Customer Support Portal role | The Super User role is assigned to your Customer Support Portal account. The account creator receives this role.                                            |
  | Cortex role                  | You must have the Account Admin role. The first user who accesses Cortex Gateway with the Super User role receives Account Admin permissions automatically. |

  Log in to Cortex Gateway to download the image file and license.

  If you have multiple or development tenants, repeat these tasks for each tenant.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>You need a license, or an evaluation license through sales, assigned to your Customer Support Portal account to download the Cortex XSOAR images.</p></div>
* Your deployment meets the [System Requirements](/cortex-xsoar-6-installation-guides/6.13/cortex-xsoar-installation-guide/system-requirements/cortex-xsoar-system-requirements.md).
* You have root access.

### Install Cortex XSOAR offline

{% stepper %}
{% step %}

### Download the required dependencies

1. On a machine with internet access, do the following:
   1. Download and install offline the [required dependencies](/cortex-xsoar-6-installation-guides/6.13/cortex-xsoar-installation-guide/single-server-installation/install-cortex-xsoar-offline/dependencies-for-offline-installation.md) for your deployment type.

      1. Run the command **`#sudo apt-get install --download-only <package name>`**

         This will download the package and any dependencies it may have to the folder `/var/cache/apt/archives`.

         If the newest version is already installed, you can download the package by running the command **`#sudo apt-get download <package name>`**

         This will download the package to the folder the command is run from.
      2. Copy all .deb files over to the offline machine into a folder.
      3. Install all dependencies offline by running the command **`#sudo dpkg -i *`**

      <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>If you need to download dependencies on Ubuntu, you can also use the command <strong><code>sudo apt-get download</code></strong>.</p></div>

{% endstep %}

{% step %}

### Download the installation files

Ensure the Cortex XSOAR installer and license files are downloaded from Cortex Gateway.

1. Log in to [Cortex Gateway](https://cortex-gateway.paloaltonetworks.com/accounts).
2. Locate the activation card for your license.
3. Select **Download On Prem**.
4. Select **Next**.
5. Under **Choose Download Option**, select **Installer**.
6. Select the checkbox to agree to the license terms and conditions. Then select **Download**.

The installer file, `demistoserver-xxxxx.sh`, and a zipped JSON license file download.
{% endstep %}

{% step %}

### Download Docker images

Download the Docker images by appending **`downloadName=dockerimages`** to the download URL you copied from the installer download.

For example:

`https://download.demisto.com/download-params?token=xxxxxxx email=user@paloaltonetworks.com downloadName=dockerimages eula=accept`

The Docker images file is approximately 75 GB.
{% endstep %}

{% step %}

### Transfer and verify downloaded files

On the offline machine, transfer the dependency files and verify that the required dependencies are installed.
{% endstep %}

{% step %}

### Install Cortex XSOAR

Install Cortex XSOAR offline by running the following command:

`sudo ./demisto.sh -- -tools=false -do-not-start-server=true`
{% endstep %}

{% step %}

### Load Docker images

Upload the Docker images that you downloaded by doing one of the following:

* (Ubuntu, Red Hat v7 & below) Run the following command:

  **`sudo docker load -i <YOUR_DOCKER_FILE>.tar`**
* (Red Hat v8 & above) Do the following:
  1. Ensure that the docker file has **`demisto:demisto`** ownership.
  2. Ensure that you are in the root directory (**`cd /`**).
  3. Run the following commands:

     **`sudo -su demisto`**

     **`podman load -i <YOUR_DOCKER_FILE>.tar`**
  4. (Optional) To verify that images are able to run, use the **`podman images`** command. You can also run the **`podman images -q "demisto/python:1.3-alpine"`** command to validate specific images and identify any issues.
     {% endstep %}

{% step %}

### Start Cortex XSOAR

Start the server by running the following command:

`sudo systemctl start demisto`
{% endstep %}

{% step %}

### Verify the installation

After installation has completed, do the following:

1. Confirm that the Cortex XSOAR server status is active, by running the **`systemctl status demisto`** command.
2. (Ubuntu, Debian, Red Hat v7 & below, or CentOS v7 & below) Confirm that the Docker service status is active, by running the **`systemctl status docker`** command.
3. In a web browser, go to the **`https://serverURL:port`** to verify that Cortex XSOAR was successfully installed.

   When you open Cortex XSOAR for the first time you need to add the license.
   {% endstep %}
   {% endstepper %}

### **Troubleshoot Offline Installation**

If you receive the following message, ensure you use a version of Podman that supports archives with multiple images.

**`Error: error pulling "": unable to pull dir:./xsoar_docker_images.tar: error determining pull goal for image "dir:./xsoar_docker_images.tar": error parsing dest reference name "localhost/./xsoar_docker_images.tar": error parsing named reference "localhost/./xsoar_docker_images.tar": invalid reference format`**

**Next steps**

After you successfully complete your Cortex XSOAR offline installation, you will likely need to:

* Turn off Marketplace synchronization.
* Download content packs offline.

  For more information, see [Download Content Packs and Docker Images Offline](https://xsoar.pan.dev/docs/reference/articles/download-packs-offline) and [Install a Content Pack Offline](/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/marketplace/install-a-content-pack-offline.md).

  Watch this video for information about installing content in an air-gapped environment: [Install XSOAR Content in Air-Gapped Environments](https://www.youtube.com/watch?v=sTvSUFeZI3I).
* (Optional) Install an engine offline.
* (Informational) Set relevant server configurations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsoar-6-installation-guides/6.13/cortex-xsoar-installation-guide/single-server-installation/install-cortex-xsoar-offline.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
