diff --git a/install b/install
index 6d9512a8909e90432c627cd82fe41e453c25980c..7906e1df28430b0a9eccad330584cb3aebb391e4 100755
--- a/install
+++ b/install
@@ -81,11 +81,8 @@ if [ x"$i_dir" == x"" ]; then
  i_dir="$HOME"
 fi
 
-remove_old $i_dir
-
 ## Check and try to install the prerequisites
 
-pre_req
 
 if [ $update_openfpm -eq 1 -a  $upgrade_openfpm -eq 1 ]; then
 	echo -e "\033[1;5;31m It is not possible to update and upgrade at the same time \033[0m"
@@ -102,6 +99,12 @@ if [ $upgrade_openfpm -eq 1 ]; then
 	exit 0
 fi
 
+remove_old $i_dir
+
+## Check and try to install the prerequisites
+
+pre_req
+
 ## clone the dependencies
 
 git submodule init