ien
By:
ien

Can't get latest version of s3cmd

April 14, 2016 1.6k views
Linux Basics Applications

I do:

$ sudo apt-get update
$ sudo apt-get upgrade s3cmd

I'm told I'm already at latest version.

But when I do:

$ s3cmd --version

I get version 1.1.0-beta3 which is most definitely not the most recent version, which you can see here: https://github.com/s3tools/s3cmd/blob/master/NEWS

Perhaps Digital Ocean's apt-get info isn't up to date for s3cmd?

This is on an Ubuntu 14.04.3 x64 droplet.

3 Answers

Hey ien,
I believe DO's apt-get repo's are just caching mirrors of the official Ubuntu repos. Version 1.1.0-beta3 is the most recent version that is in Ubuntu's repo (which usually lag a bit behind current releases). You can check which version is available (and what repo it comes from) with the command sudo apt-cache policy s3cmd. For example, from pure Ubuntu server outside of DO:

$ sudo apt-cache policy s3cmd
s3cmd:
  Installed: (none)
  Candidate: 1.1.0~beta3-2
  Version table:
     1.1.0~beta3-2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

And from a DO droplet

$ sudo apt-cache policy s3cmd
s3cmd:
  Installed: (none)
  Candidate: 1.1.0~beta3-2
  Version table:
     1.1.0~beta3-2 0
        500 http://mirrors.digitalocean.com/ubuntu/ trusty/universe amd64 Packages

The s3cmd tools site itself says that the repo's are not up to date, and for the latest version you need to either download it from sourceforge or github.

http://s3tools.org/download

Hope this helps!

  • Thanks! I shouldn't have assumed the apt-get repos were up to date!

Be careful while u issue , sudo apt-get upgrade s3cmd

You might end up upgrading various packages in that server which u might not want.

Have another answer? Share your knowledge.