> For the complete documentation index, see [llms.txt](https://docs.expandrive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expandrive.com/installation-and-system-requirements/linux-installation.md).

# Linux Installation

## 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 [64-bit `.deb` package](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=deb) and install it through the graphical installer or with the following command:

```bash
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 configures the APT repository and code-signing key, so future updates use the system package manager.

### Manual Repository Installation for Debian and Ubuntu

Use the manual repository installation when troubleshooting the `.deb` package, automating installation across multiple systems, or verifying the signing key before adding it to your system.

Install the repository and key manually with the following commands:

```bash
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:

```bash
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 [64-bit `.rpm` package](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=rpm) and use YUM to install ExpanDrive and its required dependencies.

```bash
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 use the system package manager.

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

Use the manual repository installation when troubleshooting the `.rpm` package, automating installation across multiple systems, or verifying the signing key before adding it to your system.

Install the yum repo manually with the following commands:

```bash
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):

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

or with `yum`:

```bash
sudo 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:

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

Run ExpanDrive and create a [connection](/connections/connection-creation-and-removal.md).

## ExpanDrive Signing Key

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

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

### Debian- and Ubuntu-Based Distributions

```bash
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

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

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