Some Linux distributions now provide s3cmd package in their base or add-ons package repositories. Unfortunately these repositories are very often “frozen” in the sense that package versions are never upgraded. From some points of view this is an understandable policy, however it also means that you will never automatically get any cool new features of future s3cmd releases.
For example – Fedora 8 (FC8) has been released with s3cmd 0.9.8.1 and even if security issues may get fixed in their updates repository it is unlikely that the users of FC8 will ever get any new features from s3cmd 0.9.8.4, for instance.
Therefore we decided to provide package repositories / RPM repositories / DEB repositories for some of the most popular distributions with the always most recent s3cmd package ready for installation.
Here is a list of currently supported distributions:
| Repository | .repo file | |
|---|---|---|
| RHEL 5 & CentOS 5 | s3tools.repo | |
| RHEL 6 & CentOS 6 | s3tools.repo | Use also for Amazon Linux AMI |
| Fedora 12 | s3tools.repo | |
| Fedora 13 | s3tools.repo | |
| Fedora 14 | s3tools.repo | |
| openSUSE 11.1 | s3tools.repo | |
| openSUSE 11.2 | s3tools.repo | |
| openSUSE 11.3 | s3tools.repo | |
| openSUSE Factory | s3tools.repo | |
| SLES 10 | s3tools.repo | See note |
| SLES 11 | s3tools.repo | |
| Debian & Ubuntu | s3tools.list | NEW |
We can’t provide packages for discontinued RPM based distributions like openSUSE 10.3 or Fedora 10 and older. However you can grab the .src.rpm file from one of the repositories above and rebuild it for your system, that should work just fine.
How to add s3tools repository to RedHat, CentOS and Fedora
There are probably some graphical package managers in RedHat based systems, but I only use yum ;-)
- As a superuser (root) go to /etc/yum.repos.d
- Download s3tools.repo file for your distribution. Links to these .repo files are in the table above. For instance wget http://s3tools.org/repo/CentOS_5/s3tools.repo if you’re on CentOS 5
- Run yum install s3cmd if you don’t have s3cmd rpm package installed yet, or yum upgrade s3cmd if you already have s3cmd rpm installed and long for a newer version.
- You will be asked to accept a new GPG key – answer yes (perhaps twice).
- That’s it. Next time you run yum upgrade you’ll automatically get the very latest s3cmd for your system.
How to add s3tools repository to OpenSUSE 11 and SLES 11
There are two ways to do it. The one described below uses command line package management tool called zypper, the other way is using YaST.
- Become a superuser (root)
- Find the s3tools.repo URL in the table above and run for instance: zypper addrepo http://s3tools.org/repo/openSUSE_11.0/s3tools.repo if you’re on OpenSUSE 11.0
- Install s3cmd with: zypper install s3cmd
- You will be asked whether you want to trust a new GPG key. Answer yes two times.
- That’s it. The s3cmd package will now be kept up to date together with all your other installed packages.
How to add s3tools repository to SLES 10 / SLED 10
Standard installation media for SuSE Linux Enterprise Server 10 and Enterprise Desktop 10 don’t contain package python-elementtree that s3cmd depends on. Therefore there is an extra step required before installing s3cmd:
- In YaST open Software -> Installation sources
- Click on Add and select Specify URL option
- First URL to add is http://download.opensuse.org/repositories/devel:/languages:/python/SLE_10 — that’s required for python-elementtree package.
- Repeat the above steps (Add and Specify URL) and add the s3cmd repository with URL http://s3tools.org/repo/SLE_10
- Exit the module with Finish
- Now from YaST module list select Software -> Software Management and search for s3cmd. A number of dependencies will be selected, namely: python-devel, python-xml, and python-elementtree
- You may be required to import one or two GPG signing keys while adding the repositories above or during package installation.
Debian & Ubuntu
Our DEB repository has been carefully created in the most compatible way – it should work for Debian 5 (Lenny), Debian 6 (Squeeze), Ubuntu 10.04 LTS (Lucid Lynx) and for all newer and possibly for some older Ubuntu releases. Follow these steps from the command line:
- Import S3tools signing key:
wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -
- Add the repo to sources.list:
sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list
- Refresh package cache and install the newest s3cmd:
sudo apt-get update && sudo apt-get install s3cmd
All other distributions
We’re keen to host repositories for other distributions and operating systems maintained by the other people. Unfortunately at the moment we’re unable to build packages for other distributions then those in the table above…





Brian wrote:
If I’m using FC8, will the FC9 or FC10 repos work for me?
(24 March 2009, 10:02 · #)
Michal Ludvig wrote:
Hi Brian,
Fedora 8 is no longer supported by RedHat and in turn my build service (build.opensuse.org) no longer builds for FC8 target.
I suggest you install from source, to be safe.
Michal
(24 March 2009, 12:00 · #)
Keith Beckman wrote:
Hmm . . . the current RPM doesn’t seem to have the man page in it.
( 3 August 2009, 18:08 · #)
Garrett Tillotson wrote:
Excellent… thank you!
(11 September 2009, 06:01 · #)
Alex wrote:
(1) The repo file for SuSE 11.1 seems to be missing.
(2) I tried installing the 11.0 version, and get an error message on install about s3cmd-0.9.9-3.1.i586 needing python < 2.6
(17 October 2009, 04:55 · #)
John Sauter wrote:
The third step of your Ubuntu / Debian instructions didn’t work for me. Instead of
sudo aptitude update && sudo aptitude install -V s3cmd
I performed two commands:
sudo apt-get update
and
sudo apt-get install s3cmd
(28 January 2011, 04:44 · #)
Naveen Chobisa wrote:
can u give me help related to s3cmd newer version 0.9.8.3. i want to download multiple objects in eucalyptus bucket. and also want to delete non empty bucket in eucalyptus bucket. so please u give me help about this meter……….
(20 February 2011, 04:54 · #)
Barbal wrote:
Using Ubuntu 10.04, I can not put files as small as 500MB on S3 using: s3cmd put —acl-private 500mbfile.tar.gz s3://zitex/500mbfile.tar.gz. I get ERROR: Upload of ‘500mbfile.tar.gz’ failed too many times. Skipping that file. On my old server, running the very same OS, I did not have this problem. How can I resolve this? Thanks
( 7 September 2011, 16:54 · #)
Trenton Scott wrote:
Could you update the .DEB package in the repo for version 1.01?
(18 September 2011, 20:09 · #)
anon wrote:
Error: Package: s3cmd-1.0.0-4.1.x86_64 (s3tools) Requires: python-elementtree You could try using —skip-broken to work around the problem You could try running: rpm -Va —nofiles —nodigest
any suggestions? I’m on Amazon AMI.
( 2 October 2011, 21:29 · #)
paulwintech wrote:
Hi,
Please let me know is there any support for server side encryption enhanced in s3cmd??? release.Thanks
Paul
(10 December 2011, 22:47 · #)
kain wrote:
pretty much dead
(15 September 2012, 23:25 · #)
Matthaus Owens wrote:
Looks like the deb repo is pointing to localhost somewhere somehow.
localhost:20305
(16 October 2012, 07:36 · #)
FXL wrote:
When attempting to install s3cmd on a CentOS 5 system using the repo file: http://s3tools.org/repo/CentOS_5/s3tools.repo I see the following error:
yum install s3cmd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn
Setting up Install Process
Resolving Dependencies
—> Running transaction check
—-> Package s3cmd.i386 0:1.0.0-4.1 set to be updated
—> Processing Dependency: python(abi) = 2.6 for package: s3cmd
—-> Package s3cmd.x86_64 0:1.0.0-4.1 set to be updated
—> Processing Dependency: python(abi) = 2.6 for package: s3cmd
—> Finished Dependency Resolution
s3cmd-1.0.0-4.1.i386 from s3tools has depsolving problems —> Missing Dependency: python(abi) = 2.6 is needed by package s3cmd-1.0.0-4.1.i386 (s3tools)
s3cmd-1.0.0-4.1.x86_64 from s3tools has depsolving problems —> Missing Dependency: python(abi) = 2.6 is needed by package s3cmd-1.0.0-4.1.x86_64 (s3tools)
Error: Missing Dependency: python(abi) = 2.6 is needed by package s3cmd-1.0.0-4.1.x86_64 (s3tools)
Error: Missing Dependency: python(abi) = 2.6 is needed by package s3cmd-1.0.0-4.1.i386 (s3tools) You could try using —skip-broken to work around the problem You could try running: package-cleanup —problems package-cleanup —dupes rpm -Va —nofiles —nodigest
The program package-cleanup is found in the yum-utils package.
Any idea how to work around this?
(30 October 2012, 10:29 · #)
Shailesh Sutar wrote:
Hi while installing s3cmd i got below error. can any help me with this.
==============
# yum install s3cmd
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile * base: centos.mirror.facebook.net * extras: mirror.stanford.edu * updates: centos.mirror.facebook.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
—> Running transaction check
—-> Package s3cmd.x86_64 0:1.0.0-4.1 set to be updated
—> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================= Package Arch Version Repository Size
=============================================================================================================================================================
Installing: s3cmd x86_64 1.0.0-4.1 s3tools 91 k
Transaction Summary
=============================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 91 k
Is this ok [y/N]: y
Downloading Packages:
s3cmd-1.0.0-4.1.x86_64.rpm | 92 kB 00:00
http://s3tools.org/repo/RHEL_5/x86_64/s3cmd-1.0.0-4.1.x86_64.rpm: [Errno -1] Package does not match intended download
Trying other mirror.
Error Downloading Packages: s3cmd-1.0.0-4.1.x86_64: failure: x86_64/s3cmd-1.0.0-4.1.x86_64.rpm from s3tools: [Errno 256] No more mirrors to try.
Please help me with this.
(29 November 2012, 07:12 · #)
Chris Olido wrote:
I am trying to use the tool and i successfully intalls the s3cmd in my ec2 instance via rightscripts.
Ex. 1
****************
#!/bin/bash -e
yum install s3cmd
$ACCESS_ID= @#$%^&*(
$SECRET_KEY=!@#$%^&*(
exit 0 *************
No error when i run the rightscripts.
But when I try to run in the server CLI.
I have this result.
************
chris_olido]# s3cmd list
You didn’t set up your environment variables; see README.txt
s3cmd [options] <command> [arg(s)] version 1.2.5 —help -h —verbose -v —dryrun -n —ssl -s —debug -d —progress —expires-in=( <# of seconds> | [#d|#h|#m|#s] )
Commands:
s3cmd listbuckets [headers]
s3cmd createbucket <bucket> [constraint (i.e. EU)]
s3cmd deletebucket <bucket> [headers]
s3cmd list <bucket>[:prefix] [max/page] [delimiter] [headers]
s3cmd location <bucket> [headers]
s3cmd delete <bucket>:key [headers]
s3cmd deleteall <bucket>[:prefix] [headers]
s3cmd get|put <bucket>:key <file> [headers]
**********
I have red the README.txt but still dont work when i applied it. Anyone can help me on this.
Thanks in Advance.
- Chris
(19 January 2013, 20:41 · #)