CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFoam 2.0.1 --> 2.1.0 (https://www.cfd-online.com/Forums/openfoam-installation/95770-openfoam-2-0-1-2-1-0-a.html)

SH_P January 2, 2012 01:47

OpenFoam 2.0.1 --> 2.1.0
 
Hi,
I have openFoam 2.0.1 installed and I want to install version 2.1.0.
could you please explain the steps to uninstall the previous version (is it necessary or it can overwrite the existing version?).
Thanks,

gschaider January 2, 2012 05:29

Quote:

Originally Posted by SH_P (Post 337529)
Hi,
I have openFoam 2.0.1 installed and I want to install version 2.1.0.
could you please explain the steps to uninstall the previous version (is it necessary or it can overwrite the existing version?).
Thanks,

Depends on how you installed OF

If you installed it from the sources then you can have multiple versions in parallel.

With the binary packages I think (I don't use them) you can only have one version at a time, but the package manager should take care of uninstalling the old version

SH_P January 2, 2012 05:58

I installed it from the sources, how can I remove the older version after installing the new one. I have limited space available, so I have to do this!
Thanks

wyldckat January 2, 2012 08:41

Greetings to all!

@Soroush: OK, assuming you have installed OpenFOAM in the usual folder at the home folder, it should be as easy as:
  1. Removing the folders "OpenFOAM-2.0.1" and "ThirdParty-2.0.1" from the folder "$HOME/OpenFOAM". To remove it directly on the command line, check first that you have these folders at "$HOME/OpenFOAM":
    Code:

    ls -l $HOME/OpenFOAM
    If they are present there, then:
    Code:

    cd $HOME/OpenFOAM
    rm -rf OpenFOAM-2.0.1 ThirdParty-2.0.1

  2. Remove the respective line in the file "$HOME/.bashrc". Edit it with your favourite text editor and remove the line that has a reference to "OpenFOAM-2.0.1".
  3. And that should be it! All done!
You can check the space available before and after by running:
Code:

df -h
Best regards,
Bruno

SH_P January 2, 2012 14:22

Thanks Bruno...!

akidess January 4, 2012 07:56

Can 2.1.x run on ThirdParty-2.0.x? Can anybody report if there are major changes in the third party packages?

gschaider January 4, 2012 09:07

Quote:

Originally Posted by akidess (Post 337828)
Can 2.1.x run on ThirdParty-2.0.x? Can anybody report if there are major changes in the third party packages?

Just do a symbolic link and adapt the version numbers of the packages in the settings file. That worked for me

wyldckat January 4, 2012 16:19

Hi Anton and Bernhard,

To complement Bernhard's response, basically the changes were:
  • ParaView got upped from 3.10.1 to 3.12.0.
  • Some scripts got modified/fixed/updated, namely makeCGAL and makeParaView related.
  • There is a new makeGcc46 script.
  • And "Make/*" files for "libccmio" got removed... basically due a bug report by yours truly...
Scotch is still the same version.

Best regards,
Bruno

akidess January 5, 2012 02:43

Thanks to both of you!


All times are GMT -4. The time now is 00:26.