First, download the Unix tarball from the download page and run the following commands:
# tar -xvvjf framework-3.5.0.tar.bz2
# mkdir -p /opt/metasploit3
# cp -a msf3/ /opt/metasploit3/msf3
# chown root:root -R /opt/metasploit3/msf3
# ln -sf /opt/metasploit3/msf3/msf* /usr/local/bin/
Second, install whatever Subversion package (only the client is needed) is provided with your distribution. Once the package has been installed, test it with the following command:
If this provides a directory listing, it should be usable. If this does not work, you will need to build a newer version of Subversion from source and skip ahead to the next section.
To determine if the Subversion client is new enough to update from a tarball installation:
# svn update /opt/metasploit3/msf3/
If this succeeds, congratulations, your Subversion client is usable! If this fails, you will need to delete the tarball installation and perform a fresh checkout.
Now that Subversion has been sorted out, we need to test the Ruby installation:
# ruby /opt/metasploit3/msf3/msfconsole
If this brings up a Metasploit Console with no warnings, your Ruby version has support for at least the basic functionality of the framework.
To verify that everything is working:
# ruby -rrubygems -rreadline -ropenssl -rirb -rdl -riconv -e 'p :OK'