2015-05-19 12:11:52 +05:30
### Installing Gluster
For RPM based distributions, if you will be using InfiniBand, add the
2017-07-27 14:26:48 +05:30
glusterfs RDMA package to the installations. For RPM based systems, yum/dnf
2015-05-19 12:11:52 +05:30
is used as the install method in order to satisfy external depencies
such as compat-readline5
2016-09-28 14:02:13 -04:00
###### Community Packages
2020-11-24 04:49:28 +01:00
Packages are provided according to this [table ](./Community-Packages.md ).
2016-09-28 14:02:13 -04:00
2015-05-19 12:11:52 +05:30
###### For Debian
2016-07-26 15:37:37 -07:00
Add the GPG key to apt:
2015-05-19 12:11:52 +05:30
2019-09-20 15:23:43 +05:30
```console
2021-09-28 12:19:00 +05:30
wget -O - https://download.gluster.org/pub/gluster/glusterfs/9/rsa.pub | apt-key add -
2019-09-20 15:23:43 +05:30
```
2015-05-19 12:11:52 +05:30
2019-12-10 21:13:53 +01:00
If the rsa.pub is not available at the above location, please look here https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub and add the GPG key to apt:
2017-11-30 12:18:45 +05:30
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | apt-key add -
2019-09-20 15:23:43 +05:30
```
2017-11-30 12:18:45 +05:30
2016-07-26 15:37:37 -07:00
Add the source:
2015-05-19 12:11:52 +05:30
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
DEBID=$(grep 'VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')
DEBVER=$(grep 'VERSION=' /etc/os-release | grep -Eo '[a-z]+')
DEBARCH=$(dpkg --print-architecture)
echo deb https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main > /etc/apt/sources.list.d/gluster.list
2019-09-20 15:23:43 +05:30
```
2016-07-26 15:37:37 -07:00
Update package list:
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
apt update
2019-09-20 15:23:43 +05:30
```
2016-07-26 15:37:37 -07:00
Install:
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
apt install glusterfs-server
2019-09-20 15:23:43 +05:30
```
2015-05-19 12:11:52 +05:30
###### For Ubuntu
2018-03-12 16:56:32 +01:00
Install software-properties-common:
2015-06-10 12:13:52 +05:30
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
apt install software-properties-common
2019-09-20 15:23:43 +05:30
```
2015-05-19 12:11:52 +05:30
Then add the community GlusterFS PPA:
2019-09-20 15:23:43 +05:30
```console
2022-11-08 00:16:57 -05:00
add-apt-repository ppa:gluster/glusterfs-10
2019-12-10 21:13:53 +01:00
apt update
2019-09-20 15:23:43 +05:30
```
2015-05-19 12:11:52 +05:30
Finally, install the packages:
2019-09-20 15:23:43 +05:30
```console
2022-11-08 00:20:43 -05:00
apt install glusterfs-server
2019-09-20 15:23:43 +05:30
```
2015-05-19 12:11:52 +05:30
2021-04-01 19:06:43 +05:00
*Note: Packages exist for Ubuntu 16.04 LTS, 18.04
2022-11-08 00:16:57 -05:00
LTS, 20.04 LTS, 20.10, 21.04, 22.04*
2015-05-19 12:11:52 +05:30
###### For Red Hat/CentOS
2016-07-16 12:30:26 +05:30
RPMs for CentOS and other RHEL clones are available from the
CentOS Storage SIG mirrors.
2015-05-19 12:11:52 +05:30
2016-07-16 12:30:26 +05:30
For more installation details refer [Gluster Quick start guide ](https://wiki.centos.org/SpecialInterestGroup/Storage/gluster-Quickstart ) from CentOS Storage SIG.
2015-05-19 12:11:52 +05:30
###### For Fedora
2016-07-26 15:37:37 -07:00
Install the Gluster packages:
2015-05-19 12:11:52 +05:30
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
dnf install glusterfs-server
2019-09-20 15:23:43 +05:30
```
2015-05-19 12:11:52 +05:30
Once you are finished installing, you can move on to [configuration ](./Configure.md ) section.
2016-07-26 15:37:37 -07:00
###### For Arch Linux
Install the Gluster package:
2019-09-20 15:23:43 +05:30
```console
2019-12-10 21:13:53 +01:00
pacman -S glusterfs
2019-09-20 15:23:43 +05:30
```