Introduction

S3cmd is a free and open-source command-line tool used to manage and interact with Amazon S3 and S3-compatible object storage services such as MinIO, DigitalOcean Spaces, Ceph, and others. It allows administrators to upload, download, synchronize, and manage files and buckets directly from the Linux terminal.

This document provides the steps to install and verify the s3cmd utility on a Linux system.


Prerequisites

Before installing s3cmd, ensure the following requirements are met:

  • A Linux server with root or sudo privileges.
  • Internet connectivity to download the installation package.
  • Python installed on the server.
  • Python setuptools package.
  • wget utility for downloading files.
  • tar utility for extracting archives.

Installation Steps

Step 1: Download the s3cmd Package

Download the required version of s3cmd.

wget http://sourceforge.net/projects/s3tools/files/s3cmd/1.5.2/s3cmd-1.5.2.tar.gz

Step 2: Extract the Package

Extract the downloaded archive.

tar -xvzf s3cmd-1.5.2.tar.gz

Step 3: Navigate to the Extracted Directory

cd s3cmd-1.5.2

Step 4: Install Python Setuptools

Debian/Ubuntu

sudo apt-get update
sudo apt-get install python-setuptools

RHEL/CentOS/Amazon Linux

sudo yum install python-setuptools

Step 5: Install s3cmd

Run the setup script to install the utility.

sudo python setup.py install

Step 6: Verify the Installation

Check whether the installation completed successfully.

s3cmd --version

Expected output:

s3cmd version 1.5.2

Additional Information

For more details regarding installation, configuration, and usage, refer to the INSTALL file included in the extracted s3cmd-1.5.2 directory.


Conclusion

The s3cmd utility has now been successfully installed on the Linux server. It can be used to manage Amazon S3 and S3-compatible storage services through the command line. After installation, you can proceed with configuring access credentials using s3cmd --configure and begin managing buckets and objects efficiently.

Leave a Reply