How to install s3cmd on Linux on WEkEO

In this article, you will learn how to install s3cmd on Linux.

s3cmd can be used, among other things, to:

  • store files in object storage available on WEkEO,

without mounting these resources as a file system.

What we are going to cover

  • Installing s3cmd using apt

  • Checking the installed version

  • Uninstalling s3cmd

Prerequisites

No. 1 Account

You need a WEkEO hosting account with access to the Horizon interface: https://horizon.cloudferro.com.

No. 2 A virtual machine or local computer

These instructions are written for Ubuntu 22.04, either on a local computer or on a virtual machine hosted on WEkEO cloud.

Other operating systems and environments are outside the scope of this article and may require adjusted commands.

If you want to install s3cmd on a virtual machine hosted on WEkEO cloud, follow one of these articles:

Object storage from WEkEO is available both from a virtual machine hosted on WEkEO cloud and from a local Linux computer.

Installing s3cmd using apt

Update the packages on your system:

sudo apt update && sudo apt -y upgrade

Note

When executing sudo, you may be prompted for a password. If that happens, enter the local user account password and press Enter.

Install s3cmd:

sudo apt -y install s3cmd

After installation, s3cmd is available as a command in the terminal.

Check whether the installation was successful:

s3cmd --version

You should get the version of s3cmd installed on your computer. For example:

s3cmd version 2.2.0
../_images/install-s3cmd-linux-01_creodias.png

Uninstalling s3cmd using apt

If you installed s3cmd using apt, remove it using the same package manager:

sudo apt -y remove s3cmd

To remove packages that were installed as dependencies of s3cmd, or other packages that were later removed and are no longer needed, run:

sudo apt autoremove

This may affect software not directly related to s3cmd. The command will show you which packages are to be removed before proceeding.

../_images/install-s3cmd-linux-02_creodias.png

You should get the following question:

Do you want to continue? [Y/n]

If you want to remove these packages, answer with Y and press Enter.

If you do not want to remove them, answer with n and press Enter.

What to do next

To access object storage buckets from WEkEO cloud on a virtual machine hosted on WEkEO cloud or on a local Linux computer, follow this article:

How to access object storage from WEkEO using s3cmd