Package repositories

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 ;-)

  1. As a superuser (root) go to /etc/yum.repos.d
  2. 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
  3. 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.
  4. You will be asked to accept a new GPG key – answer yes (perhaps twice).
  5. 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.

  1. Become a superuser (root)
  2. 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
  3. Install s3cmd with: zypper install s3cmd
  4. You will be asked whether you want to trust a new GPG key. Answer yes two times.
  5. 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:

  1. In YaST open Software -> Installation sources

  1. Click on Add and select Specify URL option
  2. First URL to add is http://download.opensuse.org/repositories/devel:/languages:/python/SLE_10 — that’s required for python-elementtree package.
  3. Repeat the above steps (Add and Specify URL) and add the s3cmd repository with URL http://s3tools.org/repo/SLE_10
  4. Exit the module with Finish
  5. 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
  6. 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:

  1. Import S3tools signing key:
    wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -
  2. 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
  3. 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…

By Michal Ludvig on 10 November 2008

Tags:

---

Comments

  1. Brian wrote:

    If I’m using FC8, will the FC9 or FC10 repos work for me?

    (24 March 2009, 10:02 · #)

  2. 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 · #)

  3. Keith Beckman wrote:

    Hmm . . . the current RPM doesn’t seem to have the man page in it.

    ( 3 August 2009, 18:08 · #)

  4. Garrett Tillotson wrote:

    Excellent… thank you!

    (11 September 2009, 06:01 · #)

  5. 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 · #)

  6. 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 · #)

  7. 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 · #)

  8. 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 · #)

  9. Trenton Scott wrote:

    Could you update the .DEB package in the repo for version 1.01?

    (18 September 2011, 20:09 · #)

  10. 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 · #)

  11. 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 · #)

 
---