# Installation

## Linux

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

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/download-server-edition/), either through the graphical installer or via the command-line with the following command. Note that the package for server edition name is `exfs`

```
sudo apt install ./exfs_7.5.2_amd64.deb
```

Installing the .deb will also automatically install the apt repository and code signing key to enable easy update using the system package manager.‌

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

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

Download our latest .[rpm package (64-bit)](https://www.expandrive.com/download-server-edition/) and use `yum` to install ExpanDrive and the required dependencies. Note that the package for server edition name is `exfs`

```
sudo yum localinstall ./exfs-7.5.2-0.x86_64.rpm
```

Installing the .rpm will also automatically configure the yum repository and code signing key to enable easy update using the system package manager.‌

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-updatesudo dnf install exfs
```

or using `yum`

```
yum check-updatesudo yum install exfs
```
