1
0
mirror of https://github.com/gluster/glusterdocs.git synced 2026-02-06 18:47:08 +01:00
Files

77 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

### 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
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
Add the GPG key to apt:
wget -O - http://download.gluster.org/pub/gluster/glusterfs/LATEST/rsa.pub | apt-key add -
If the rsa.pub is not available at the above location, please look here https://download.gluster.org/pub/gluster/glusterfs/3.12/rsa.pub and add the GPG key to apt:
wget -O - https://download.gluster.org/pub/gluster/glusterfs/3.12/rsa.pub | apt-key add -
Add the source:
2016-08-13 02:32:26 +02:00
DEBID=$(grep 'VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')
DEBVER=$(grep 'VERSION=' /etc/os-release | grep -Eo '[a-z]+')
add proper arch into sources path Without arch in link `apt-get update` does not work: ``` Ign:6 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch InRelease Ign:7 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch Release Ign:8 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main amd64 Packages Ign:9 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main all Packages Ign:10 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en_US Ign:11 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en Ign:8 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main amd64 Packages Ign:9 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main all Packages Ign:10 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en_US Ign:11 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en Ign:8 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main amd64 Packages Ign:9 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main all Packages Ign:10 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en_US Ign:11 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en Ign:8 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main amd64 Packages Ign:9 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main all Packages Ign:10 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en_US Ign:11 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en Ign:8 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main amd64 Packages Ign:9 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main all Packages Ign:10 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en_US Ign:11 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en Err:8 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main amd64 Packages 404 Not Found Ign:9 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main all Packages Ign:10 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en_US Ign:11 https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch/main Translation-en Reading package lists... Done W: The repository 'https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt stretch Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/9/apt/dists/stretch/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. ```
2018-02-16 09:11:33 +01:00
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
Update package list:
apt-get update
Install:
apt-get install glusterfs-server
###### For Ubuntu
Install software-properties-common:
2015-06-10 12:13:52 +05:30
sudo apt-get install software-properties-common
Then add the community GlusterFS PPA:
sudo add-apt-repository ppa:gluster/glusterfs-3.8
sudo apt-get update
Finally, install the packages:
sudo apt-get install glusterfs-server
*Note: Packages exist for Ubuntu 12.04 LTS, 12.10, 13.10, and 14.04
LTS*
###### 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:
2017-07-27 14:26:48 +05:30
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:
pacman -S glusterfs