1
0
mirror of https://github.com/gluster/glusterdocs.git synced 2026-02-06 18:47:08 +01:00
Files
glusterdocs/docs/Install-Guide/Install.md
Kevin Köllmann c277f0c6ef Do not use apt-key anymore as it is deprecated (#783)
Instead of using  `apt-key` to download/install the GlusterFS GPG key, we download it to /etc/apt/keyrings/ and explicitly use it in the gluster.list sources file.

Signed-off-by: Kevin Köllmann <mail@kevinkoellmann.de>
2023-09-11 11:29:13 +05:30

95 lines
2.3 KiB
Markdown

### Installing Gluster
For RPM based distributions, if you will be using InfiniBand, add the
glusterfs RDMA package to the installations. For RPM based systems, yum/dnf
is used as the install method in order to satisfy external depencies
such as compat-readline5
###### Community Packages
Packages are provided according to this [table](./Community-Packages.md).
###### For Debian
Download the GPG key to apt config directory:
```console
wget -O - https://download.gluster.org/pub/gluster/glusterfs/9/rsa.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/gluster.gpg
```
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:
```console
wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/gluster.gpg
```
Add the source:
```console
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 [signed-by=/etc/apt/trusted.gpg.d/gluster.gpg] https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main" > /etc/apt/sources.list.d/gluster.list
```
Update package list:
```console
apt update
```
Install:
```console
apt install glusterfs-server
```
###### For Ubuntu
Install software-properties-common:
```console
apt install software-properties-common
```
Then add the community GlusterFS PPA:
```console
add-apt-repository ppa:gluster/glusterfs-7
apt update
```
Finally, install the packages:
```console
apt install glusterfs-server
```
_Note: Packages exist for Ubuntu 16.04 LTS, 18.04
LTS, 20.04 LTS, 20.10, 21.04_
###### For Red Hat/CentOS
RPMs for CentOS and other RHEL clones are available from the
CentOS Storage SIG mirrors.
For more installation details refer [Gluster Quick start guide](https://wiki.centos.org/SpecialInterestGroup/Storage/gluster-Quickstart) from CentOS Storage SIG.
###### For Fedora
Install the Gluster packages:
```console
dnf install glusterfs-server
```
Once you are finished installing, you can move on to [configuration](./Configure.md) section.
###### For Arch Linux
Install the Gluster package:
```console
pacman -S glusterfs
```