-
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.
[root@app1c yum.repos.d]# yum update
Tools for managing Amazon S3 - Simple Storage Service (RHEL_6) 1.9 kB/s | 1.6 kB 00:00
Dependencies resolved.
Nothing to do.
Complete!
[root@app1c yum.repos.d]# yum install s3cmd
Last metadata expiration check: 0:00:06 ago on Sun 25 Sep 2022 03:09:07 PM EDT.
Error:
Problem: cannot install the best candidate for the job
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@app1c yum.repos.d]#