# Linux Installations

## Debian and Ubuntu Based Distributions <a href="#debian-and-ubuntu-based-distributions" id="debian-and-ubuntu-based-distributions"></a>

### Simple Installation for Debian and Ubuntu

For Debian and Ubuntu based distributions, download the latest [.deb package (64 bit)](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=deb) and install it through the graphical installer or with the following command.

```
sudo apt install ./ExpanDrive_*_amd64.deb
```

Replace the filename with the actual downloaded package name, or use the wildcard pattern shown above.

Installing the .deb this way also installs the apt repository and code signing key, so future updates flow through the system package manager.

### Manual Repository Installation for Debian and Ubuntu

Manual repository installation lets you troubleshoot each step separately when the simple .deb installation doesn't work. It also helps when automating ExpanDrive installation across multiple systems, or when you want to verify security keys before adding them to your system.

Install the repository and key manually with the following commands:

```
curl https://packages.expandrive.com/keys/expandrive.asc | gpg --dearmor > packages.expandrive.gpg
sudo install -o root -g root -m 644 packages.expandrive.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.expandrive.gpg] https://packages.expandrive.com/expandrive stable main" > /etc/apt/sources.list.d/expandrive.list'
```

Then update the package cache and install ExpanDrive:

```
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install expandrive
```

## RHEL, Fedora, and CentOS Based Distributions <a href="#rhel-fedora-and-centos-based-distributions" id="rhel-fedora-and-centos-based-distributions"></a>

### Simple Installation for RHEL, Fedora, and CentOS

Download the latest [.rpm package (64-bit)](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=deb) and use yum to install ExpanDrive and its required dependencies.

```
sudo yum localinstall ./ExpanDrive-*.x86_64.rpm
```

Replace the filename with the actual downloaded package name, or use the wildcard pattern shown above.

Installing the .rpm also configures the yum repository and code signing key, so future updates flow through the system package manager.

### Manual Repository Installation for RHEL, Fedora, and CentOS

Manual repository installation lets you troubleshoot each step separately when the simple .rpm installation doesn't work. It also helps when automating ExpanDrive installation across multiple systems, or when you want to verify security keys before adding them to your system.

Install the yum repo manually with the following commands:

```
sudo rpm --import https://packages.expandrive.com/keys/expandrive.asc
sudo sh -c 'echo -e "[expandrive]\nname=expandrive\nbaseurl=https://packages.expandrive.com/rpm\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.expandrive.com/keys/expandrive.asc" > /etc/yum.repos.d/expandrive.repo'
```

Then update the package cache and install ExpanDrive with `dnf` (Fedora 22 and above):

```
sudo dnf check-update
sudo dnf install expandrive
```

or with `yum`:

```
yum check-update
sudo yum install expandrive
```

## AppImage Installation

Most Linux distributions, including Ubuntu, Fedora, Debian, and OpenSUSE, can run AppImages. The AppImage is a portable, distribution-agnostic way to run ExpanDrive without a traditional installation. It requires no root permissions and does not modify system files.

To install the AppImage, [download the file](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=AppImage).

After downloading, make it executable. Replace the filename with the actual downloaded package name, or use the wildcard pattern shown below:

```
chmod +x ExpanDrive-*.AppImage
```

Run ExpanDrive and configure your [Integrations](/integrations.md).

## Installing or Updating ExpanDrive's Public Key

During an update, an error reading `The following signatures were invalid: EXPKEYSIG` means the version of the key on your system has expired.

The following commands update the public key stored on your system.

### Debian and Ubuntu Based Distributions

```
curl https://packages.expandrive.com/keys/expandrive.asc | gpg --dearmor > packages.expandrive.gpg
sudo install -o root -g root -m 644 packages.expandrive.gpg /usr/share/keyrings/
```

### RHEL, Fedora, and CentOS Based Distributions

```
sudo rpm --import https://packages.expandrive.com/keys/expandrive.asc
```

Once the key is updated, rerun the updater and the update completes without error.


---

# 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.expandrive.com/installation-and-system-requirements/linux.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.
