Archive for April 30, 2008

Must have Yum Plugin: fastestmirror

Yum always gets stuck on dead mirrors or slow mirrors. Avoid this by installing yum-fastestmirror
yum install yum-fastestmirror yum clean all

RPM Package List Without Version Info

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

To install those packages, run:

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

Capistrano Put File Fix

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