https://github.com/rapid7/metasploit-framework/wiki/Downloads-by-Version
download the latest metaslpoit community verson setup from above link.
after that go to your Downloads directory usin "cd...