my life

day to day

Archive for April, 2008

Must have Yum Plugin: fastestmirror

Wednesday, April 30th, 2008
Yum always gets stuck on dead mirrors or slow mirrors. Avoid this by installing yum-fastestmirror
yum install yum-fastestmirror yum clean all
add to del.icio.us    add to technorati favs   email this

RPM Package List Without Version Info

Wednesday, April 30th, 2008

rpm -qa --qf “%{NAME}\n”  > /tmp/installed-packages.log

To install those packages, run:

yum install -y $(cat /tmp/installed-packages.log)

add to del.icio.us    add to technorati favs   email this

Capistrano Put File Fix

Friday, April 25th, 2008

Up until recently, it was not possible to upload large files asynchronously to 2 or more machines simultaneously. This was due to a problem in the ruby ssh implementation. A patch is available which fixes this.

http://rubyforge.org/tracker/index.php?func=detail&aid=17857&group_id=274&atid=1123

If applying the patch is not an option, you can always change the transfer mode to synchronous.

set :synchronous_connect, true

add to del.icio.us    add to technorati favs   email this