10/31/2012

AWS EC2 setup useful commands



#yum install patch
#yum install make
#yum install gcc

For dig command,
#yum install bind-utils

For locate command,
#yum install mlocate

#yum install httpd httpd-devel
#yum install mod_rpaf
#yum install geoip





10/30/2012

How to enable epel repository

For CentOS 6, 64bit

1. Download the rpm of epel.
# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-x.noarch.rpm
check the latest epel version.

2. Install the package.
# rpm -ivh epel-release-6-7.noarch.rpm

3. Edit epel conf file to enable epel repository.

# vi /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://dl.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
priority=2

4. check if epel repository is working.
# yum install geoip