Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Last active April 27, 2020 15:44
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save johnantoni/8275617 to your computer and use it in GitHub Desktop.
Save johnantoni/8275617 to your computer and use it in GitHub Desktop.
install duplicity on centos 64bit

check os

cat /etc/redhat-release

install repo

sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
yum repolist

install duplicity

yum install duplicity
@non7top
Copy link

non7top commented Oct 29, 2014

@jespernohr
Copy link

Thank You, this is great. I am trying to install duplicity version 0.7 on my Centos 7, but I cannot install from http://http://mirrors.kernel.org/fedora-epel/7/x86_64/e/epel-release-7-5.noarch.rpm

any advice?

@chrissam
Copy link

@jespernohr: You can install the latest verion (0.7.06 as of now) as below,

cd /root
wget https://code.launchpad.net/duplicity/0.7-series/0.7.06/+download/duplicity-0.7.06.tar.gz
tar xzvf duplicity*
cd duplicity*
python setup.py install

You can set --prefix flag for the last command if you want to customize the location where it gets installed, For example
python setup.py install --prefix /usr/local

@onnozweers
Copy link

Thanks @chrissam! Version 0.7 fixed some weird problems for me. RHEL/Centos win the prize for distributing the most ancient packages.

I had to install these for dependencies:

yum install gcc python-devel librsync-devel python-lockfile

@yahesh
Copy link

yahesh commented Sep 5, 2016

Besides the already-mentioned package python-lockfile I also had to install the package python2-paramiko and its dependencies on CentOS 7.

@onnozweers
Copy link

onnozweers commented Nov 14, 2016

I wrote a script to automate installation of the latest Duplicity on Centos/RHEL 7.
https://github.com/onnozweers/scripts/blob/master/install-duplicity

Suggestions and pull requests welcome.

@robertoschwald
Copy link

yum install epel-release won't do on CentOS6 or 7?

@yahesh
Copy link

yahesh commented Apr 24, 2017

Strangely enough, I also had to add python-setuptools now that I wanted to install duplicity 0.7.12

@danieleagle
Copy link

danieleagle commented Apr 24, 2020

To get this to install on CentOS 8 x64, I had to do the following.

  1. sudo dnf --enablerepo=PowerTools install python3-httplib2
  2. sudo yum install epel-release
  3. sudo yum install python3-PyDrive
  4. sudo yum install duplicity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment