diff --git a/install b/install
index f4cc7bd97b0244544b91d0077706b3dc4a34f70b..a37123ad49c468226b33810504859944151af988 100755
--- a/install
+++ b/install
@@ -76,6 +76,9 @@ while getopts di:smghc:nul FLAG; do
 	      echo "No linear algebra"
 	      no_lin=1
 	      ;;
+            v)
+              echo "Relocating openfpm_vars file $OPTARG"
+              VARS_FILE_LOCATION=$OPTARG
 	    h)  #show help
       	  HELP
           ;;
@@ -564,12 +567,16 @@ bash_library="$bash_library\""
 
 # in cygwin we have to add to PATH additional directories
 
-echo "$bash_path" > $HOME/openfpm_vars
-echo "$bash_library" >> $HOME/openfpm_vars
-echo "export PURE_PYTHON=1" >> $HOME/openfpm_vars
+if [ x"VARS_FILE_LOCATION" == x"" ]; then
+	VARS_FILE_LOCATION=$HOME
+fi
+
+echo "$bash_path" > $VARS_FILE_LOCATION/openfpm_vars
+echo "$bash_library" >> $VARS_FILE_LOCATION/openfpm_vars
+echo "export PURE_PYTHON=1" >> $VARS_FILE_LOCATION/openfpm_vars
 
 if [ x"$platform" = x"osx" ]; then
-    echo "TMPDIR=/tmp/" >> $HOME/openfpm_vars
+    echo "TMPDIR=/tmp/" >> $VARS_FILE_LOCATION/openfpm_vars
 fi
 
 echo -e "$installation_report"
@@ -588,12 +595,12 @@ fi
 
 echo ""
 if [ x"$platform" = x"linux" ]; then
-  echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $HOME/.bashrc"
+  echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $VARS_FILE_LOCATION/.bashrc"
 else
-  echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $HOME/.bash_profile"
+  echo "Before run any openfpm program you must execute the following command. A simple way would be to append this line at the end of your $VARS_FILE_LOCATION/.bash_profile"
 fi
 echo ""
-echo -e "\033[1m source $HOME/openfpm_vars \033[0m"
+echo -e "\033[1m source $VARS_FILE_LOCATION/openfpm_vars \033[0m"
 echo ""
 echo ""
 echo -e "Remember to do: \033[91;5;1m make install \033[0m"