# 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 the easiest way to get started is to download and install the latest [.deb package (64 bit)](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=deb), either through the graphical installer or via the command-line 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 in this fashion will also automatically install the apt repository and code signing key to enable easy updates using the system package manager.‌

### Manual Repository Installation for Debian and Ubuntu

Manual repository installation is useful when the simple .deb installation doesn't work, letting you troubleshoot each step separately. It's also helpful if you need to automate ExpanDrive installation across multiple systems or prefer to manually verify security keys before adding them to your system.

You can 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 you update the package cache and install ExpanDrive using:

```
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 our latest .[rpm package (64-bit)](https://www.expandrive.com/api/download/expandrive?platform=linux\&ext=deb) and use yum to install ExpanDrive and the 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 will also automatically configure the yum repository and code signing key to enable easy update using the system package manager.‌

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

Manual repository installation is useful when the simple .rpm installation doesn't work, letting you troubleshoot each step separately. It's also helpful if you need to automate ExpanDrive installation across multiple systems or prefer to manually verify security keys before adding them to your system.

You can install the yum repo manually using 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 your package cache and install Expandrive using `dnf` (Fedora 22 and above):

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

or using `yum`

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

## AppImage Installation

Most Linux distributions, including Ubuntu, Fedora, Debian, and OpenSUSE, can handle AppImages. AppImage provides a portable, distribution-agnostic way to run ExpanDrive without traditional installation. This method requires no root permissions and doesn't modify system files.&#x20;

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

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

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

You can now run ExpanDrive and start configuring your [Integrations](../integrations).

## Installing or Updating ExpanDrive's Public Key

During an update of ExpanDrive, if you receive an error stating that `The following signatures were invalid: EXPKEYSIG`, this indicates that the version of the key you have is expired.&#x20;

To resolve this, the following commands will update the public key stored on your system:&#x20;

### 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‌ <a href="#rhel-fedora-and-centos-based-distributions" id="rhel-fedora-and-centos-based-distributions"></a>

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

Once the key is updated, rerun your updater and the update will complete without error.
