Skip to content

Instantly share code, notes, and snippets.

@sah2ed
Last active April 11, 2016 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sah2ed/7fb9aa9df8c61a9f1068053ea2a4522e to your computer and use it in GitHub Desktop.
Save sah2ed/7fb9aa9df8c61a9f1068053ea2a4522e to your computer and use it in GitHub Desktop.
Install Python 2.6 and AWS CLI on CentOS 5.2
cd /tmp

# Install Python 2.6.
# From http://stackoverflow.com/a/8352224/177696
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudo rpm -ivh epel-release-5-4.noarch.rpm
sudo yum install python26
mkdir -p ~/bin
ln -s /usr/bin/python26 ~/bin/python
export PATH=~/bin:$PATH # Append this to your ~/.bash_profile for persistence

# Install Pip
# From https://pip.pypa.io/en/latest/installing/
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

# Install AWS Cli
sudo pip install awscli

# Upload files in informix/ folder to S3
cd ~
aws s3 cp informix/ s3://<bucket>/informix --recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment