Skip to content

Instantly share code, notes, and snippets.

@randy-johnson
Forked from abhinavmsra/s3cmd.md
Created August 31, 2022 11:31
Show Gist options
  • Save randy-johnson/7f6c77caacdb8b7af974f0599c91b9d3 to your computer and use it in GitHub Desktop.
Save randy-johnson/7f6c77caacdb8b7af974f0599c91b9d3 to your computer and use it in GitHub Desktop.
Install s3cmd on CentOs

Installing s3cmd on CentOs

  1. As a superuser, go to /etc/yum.repos.d

    cd /etc/yum.repos.d

  2. Download the repo file

    wget http://s3tools.org/repo/RHEL_6/s3tools.repo

  3. Install the s3cmd

    sudo yum install s3cmd

  4. Perform yum upgrade to get the very latest s3cmd for your system

    sudo yum upgrade

  5. Configure the s3

    s3cmd --configure

If running this shows error, you might need to downgrade the python version to 2.6. You can do this by

`sudo nano /usr/bin/s3cmd`

and add 2.6 to the first line

`#!/usr/bin/python2.6`

Now, s3cmd --configure should work fine.

  1. Feed the credentials of your bucket.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment