Install metasploit from source - eviltik/evilprobe GitHub Wiki
https://community.rapid7.com/community/metasploit/blog/2013/05/20/git-clone-metasploit-dont-svn-checkout https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment
Warning, because of factory_girl gem module, ruby9 is mandatory
aptitude install rubygems1.9.1 ruby1.9.1-dev libpq-dev libxml2-dev libxslt1-dev postgresql // probably others
git clone --depth=1 git://github.com/rapid7/metasploit-framework metasploit
cd metasploit
gem install bundle
bundle install
postgresql is not mandatory, it's used to speed up "search".