All command in the guide need to be ran as root. To switch to root and have all the proper variables run: su - Installing Dependencies We start by making sure that we have the latest packages by updating the system using yum: yum update yum upgrade Now that we know that we are running an updated system we can install all the dependent packages that are needed by Metasploit Framework: yum groupinst