-
As a superuser, go to /etc/yum.repos.d
cd /etc/yum.repos.d
-
Download the repo file
wget http://s3tools.org/repo/RHEL_6/s3tools.repo
-
Install the s3cmd
sudo yum install s3cmd
-
Perform yum upgrade to get the very latest s3cmd for your system
sudo yum upgrade
-
Configure the s3
s3cmd --configure
If running this shows error, you might need to downgrade the python version to 2.6. You can do this by
`sudo nano /usr/bin/s3cmd`
and add 2.6 to the first line
`#!/usr/bin/python2.6`
Now, s3cmd --configure
should work fine.
- Feed the credentials of your bucket.
Cannot get configure to work - any ideas?
$ which python
/usr/bin/python
$ python -V
Python 2.6.6
$ s3cmd --configure
Traceback (most recent call last):
File "/usr/bin/s3cmd", line 2013, in
except ParameterError, e:
NameError: name 'ParameterError' is not defined
I change the HashBang on first line of s3cmd to alternative version in /usr/local/bin/...
/usr/local/bin/python3.6 - produced a syntax error.
/usr/local/bin/python2.7 - got Problem: ImportError: No module named S3.Exceptions
I tried to install as suggested by https ://github.com/s3tools/s3cmd/issues/298
Get same error with /usr/local/bin/python2.7
$ wget --no-check-certificate https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.2.tar.gz
$ tar zxvf python-dateutil-2.2.tar.gz
$ cd python-dateutil-2.2
$ /usr/local/bin/python2.7 setup.py install