Install S3CMD tools on EC2 Instance.

Install S3CMD tools on EC2 Instance.

SSH Into your EC2 Box and you run the following command to install S3CMD.

$ sudo yum install s3cmd
Loaded plugins: priorities, update-motd, upgrade-helper
Bad id for repo: datastax , byte = 8
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
No package s3cmd available.
Error: Nothing to do

No REPO is available for S3CMD.

Navigate to  cd  /etc/yum.repos.d/ 

RUN WGET Command 

[ec2-user@ip-99-999-82-777 yum.repos.d]$ sudo wget http://s3tools.org/repo/RHEL_6/s3tools.repo

Then run your yum install

$ sudo yum install s3cmd

I have pasted my error output and successful installation output.

ec2-user@ip-99-999-82-777 ~]$ cd /etc/
[ec2-user@ip-99-999-82-777 etc]$ cd yum.repos.d/
[ec2-user@ip-99-999-82-777 yum.repos.d]$ ls
10gen-mongodb.repo amzn-nosrc.repo amzn-updates.repo epel.repo
amzn-main.repo amzn-preview.repo datastax.repo epel-testing.repo
[ec2-user@ip-99-999-82-777 yum.repos.d]$ sudo wget http://s3tools.org/repo/RHEL_6/s3tools.repo
--2014-02-16 22:25:42-- http://s3tools.org/repo/RHEL_6/s3tools.repo
Resolving s3tools.org (s3tools.org)... 93.89.80.122, 2a01:348:0:6:5d59:50c3:0:b0b1
Connecting to s3tools.org (s3tools.org)|93.89.80.122|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 301 [application/octet-stream]
Saving to: ‘s3tools.repo’

100%[==================================================================>] 301 --.-K/s in 0s

2014-02-16 22:25:42 (25.1 MB/s) - ‘s3tools.repo’ saved [301/301]

[ec2-user@ip-99-999-82-777 yum.repos.d]$ ls
10gen-mongodb.repo amzn-nosrc.repo amzn-updates.repo epel.repo s3tools.repo
amzn-main.repo amzn-preview.repo datastax.repo epel-testing.repo
[ec2-user@ip-99-999-82-777 yum.repos.d]$ sudo yum install s3cmd
Loaded plugins: priorities, update-motd, upgrade-helper
Bad id for repo: datastax , byte = 8
10gen | 951 B 00:00
s3tools | 1.3 kB 00:00
s3tools/primary | 1.0 kB 00:00
s3tools 3/3
Resolving Dependencies
--> Running transaction check
---> Package s3cmd.x86_64 0:1.0.0-4.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================
Package Arch Version Repository Size
============================================================================================================
Installing:
s3cmd x86_64 1.0.0-4.1 s3tools 91 k

Transaction Summary
============================================================================================================
Install 1 Package

Total download size: 91 k
Installed size: 296 k
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/latest/s3tools/packages/s3cmd-1.0.0-4.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e612b227: NOKEY
Public key for s3cmd-1.0.0-4.1.x86_64.rpm is not installed
s3cmd-1.0.0-4.1.x86_64.rpm | 91 kB 00:00
Retrieving key from http://s3tools.org/repo/RHEL_6/repodata/repomd.xml.key
Importing GPG key 0xE612B227:
Userid : "home:mludvig OBS Project <home:[email protected]>"
Fingerprint: 96c4 2afc 03b2 73a8 43e2 a964 9f7d 494d e612 b227
From : http://s3tools.org/repo/RHEL_6/repodata/repomd.xml.key
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : s3cmd-1.0.0-4.1.x86_64 1/1
Verifying : s3cmd-1.0.0-4.1.x86_64 1/1

Installed:
s3cmd.x86_64 0:1.0.0-4.1

Complete!

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *