Skip to content

Instantly share code, notes, and snippets.

@scottames
Created March 16, 2016 23:05
Show Gist options
  • Save scottames/cddf2809ce302c1d6718 to your computer and use it in GitHub Desktop.
Save scottames/cddf2809ce302c1d6718 to your computer and use it in GitHub Desktop.
s3ql - centos 7 install
#!/usr/bin/env bash
#
## Install s3ql on centos 7 machine
### https://bitbucket.org/nikratio/s3ql/
# yum packages
sudo yum install -y epel-release
sudo yum install -y \
bzip2 \
fuse \
fuse-devel \
fuse-libs \
gcc-c++ \
libattr-devel \
libffi \
make \
psmisc \
python-defusedxml \
python34 \
python34-crypto \
python34-devel \
python34-setuptools \
sqlite \
sqlite-devel \
systemd-devel \
unzip \
xz \
xz-devel \
xz-libs
sudo yum install -y python34-apsw --enablerepo=epel-testing
# install pip3
sudo python3.4 -m easy_install pip
# install modules from pip
sudo pip3 uninstall llfuse
sudo pip3 install defusedxml
sudo pip3 install dugong
sudo pip3 install requests
sudo pip3 install llfuse==0.41.1
sudo pip3 install "git+https://github.com/systemd/python-systemd.git#egg=systemd"
# check installed modules
python3.4 -c 'import Crypto'
python3.4 -c 'import setuptools; print(setuptools.__version__)'
python3.4 -c 'import apsw; print(apsw.apswversion())'
python3.4 -c 'import systemd.daemon'
# get s3ql
wget https://bitbucket.org/nikratio/s3ql/downloads/s3ql-2.15.tar.bz2
tar xjf s3ql-*.tar.bz2
cd s3ql-2.15
# build & install
sudo python3.4 setup.py build_ext --inplace
sudo python3.4 runtests.py tests
sudo python3.4 setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment